Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native/std: restrint amount of items in JSON deserialization #2105

Merged
merged 1 commit into from
Aug 2, 2021

Conversation

fyrchik
Copy link
Contributor

@fyrchik fyrchik commented Aug 2, 2021

Close #2104 .

Signed-off-by: Evgeniy Stratonikov [email protected]

@codecov
Copy link

codecov bot commented Aug 2, 2021

Codecov Report

Merging #2105 (bdb9748) into master (06c3dda) will increase coverage by 0.21%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2105      +/-   ##
==========================================
+ Coverage   84.13%   84.34%   +0.21%     
==========================================
  Files         288      288              
  Lines       27050    27369     +319     
==========================================
+ Hits        22759    23085     +326     
+ Misses       3043     3027      -16     
- Partials     1248     1257       +9     
Impacted Files Coverage Δ
pkg/vm/stackitem/json.go 96.22% <81.81%> (-0.65%) ⬇️
pkg/core/native/std.go 96.47% <100.00%> (ø)
pkg/network/server.go 73.10% <0.00%> (+0.12%) ⬆️
pkg/consensus/consensus.go 73.15% <0.00%> (+0.54%) ⬆️
pkg/core/blockchain.go 84.30% <0.00%> (+3.21%) ⬆️
pkg/services/oracle/request.go 62.50% <0.00%> (+3.26%) ⬆️
pkg/core/dao/cacheddao.go 80.95% <0.00%> (+7.10%) ⬆️
pkg/services/oracle/oracle.go 86.48% <0.00%> (+9.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06c3dda...bdb9748. Read the comment docs.

pkg/core/native/std.go Outdated Show resolved Hide resolved
@roman-khimov roman-khimov merged commit 82f481e into master Aug 2, 2021
@roman-khimov roman-khimov deleted the json-restrict branch August 2, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Limit number of deserialized JSON items
3 participants