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: ```rust fn main() { let mut source = Vec::from(b"[-2374611873366417043\0]".as_slice()); let _ = dbg!(simd_json::to_borrowed_value(&mut source)); } ``` ```rust [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](https://datatracker.ietf.org/doc/html/rfc7159#section-2), NUL bytes are not part of allowed whitespace characters.
Activity
Licenser commentedon Nov 9, 2023
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 :)
Licenser commentedon Jul 9, 2026
fixed