-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Deserialize limit #870
Deserialize limit #870
Conversation
Codecov Report
@@ Coverage Diff @@
## master #870 +/- ##
=======================================
Coverage 43.53% 43.53%
=======================================
Files 177 177
Lines 12566 12566
=======================================
Hits 5471 5471
Misses 7095 7095
Continue to review full report at Codecov.
|
They have already been limited. neo/neo/SmartContract/InteropService.cs Lines 211 to 212 in 897df9c
neo/neo/SmartContract/InteropService.cs Line 233 in 897df9c
|
This solve the problem in deserialization, because the binary data could be "hand made" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good protections!
* Deserialize limit * Delete optional parameters * Use `ExecutionEngine.MaxSizeForBigInteger`
Before the maximum was
16777216
But in ExecutionEngine is
1048576