-
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
JSON's syscalls can't deal with NULL values #1112
Comments
Should we add new opcodes |
I think that we can use ByteArray, but a special one, we have a null item. Maybe we can check with |
How to distinguish between |
|
Please check neo-project/neo-vm#208 |
[UPDATE] I tried this approach, but went worse than having another stackitem. Reason is that it brought incertainty to ByteArray internals, which is not good (at all). I'm supporting new stackitem Null now. |
Describe the bug
In Red4sec we are preparing a fuzzing process for different neo areas. We find a issue with null values.
To Reproduce
Expected behavior
The expected result should be
{"a":1,"b":null}
Screenshots
Source Reference:
neo/neo/SmartContract/JsonSerializer.cs
Line 101 in 0a4f780
Platform:
Additional context
In addition, it should be possible to reverse a null value, to a null json value, and the VM will treat null values as a byte [0], how will it be possible to distinguish between an empty byte array and a null?
The text was updated successfully, but these errors were encountered: