-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
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:
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.
Metadata
Metadata
Assignees
Labels
No labels