Skip to content

Conversation

@spyoungtech
Copy link
Owner

@spyoungtech spyoungtech commented May 23, 2025

Issue discovered by fuzz testing. When unexpected input is present after a valid JSON value (in this test case, a hex number) and that character is a multibyte whitespace character, followed by another non-whitespace character, the get_line_col_char routine to generate an error message panics unexpectedly because it is called with a byte offset that lands in the middle of the multibyte whitespace.

For example, before this fix, the input 0xA18[NQSP]{9 panics (where [NQSP] is U+2000).

@spyoungtech spyoungtech merged commit c082d46 into main May 23, 2025
2 checks passed
@spyoungtech spyoungtech deleted the fix-multibyte-char-after-value branch June 30, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants