We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello, I'm doing differential fuzzing to find issues in my own JSON lexer, and it seems like simd-json allows nul bytes within an array:
simd-json
fn main() { let mut source = Vec::from(b"[-2374611873366417043\0]".as_slice()); let _ = dbg!(simd_json::to_borrowed_value(&mut source)); }
[src/main.rs:6] simd_json::to_borrowed_value(&mut source) = Ok( Array( [ Static( I64( -2374611873366417043, ), ), ], ), )
My lexer and Firefox's JSON.parse both reject it. According to the spec, NUL bytes are not part of allowed whitespace characters.
JSON.parse
The text was updated successfully, but these errors were encountered:
you are right, this should error 👍 I don't have time to look at it right now but it's a bug in simd-json not your library :)
Sorry, something went wrong.
No branches or pull requests
Hello, I'm doing differential fuzzing to find issues in my own JSON lexer, and it seems like
simd-json
allows nul bytes within an array:My lexer and Firefox's
JSON.parse
both reject it. According to the spec, NUL bytes are not part of allowed whitespace characters.The text was updated successfully, but these errors were encountered: