Skip to content
Myr

Fix out-of-bounds read in jv_parse_sized()

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This fixes CVE-2026-39979.

authored by itchyny · committed by itchyny · parent 0c7d133 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Mattias Wadman <mattias.wadman@gmail.com>

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:src/jv_parse.c+2 added-1 removed
891 unmodified lines
892 parser_free(&parser);893894 if (!jv_is_valid(value) && jv_invalid_has_msg(jv_copy(value))) {895 jv msg = jv_invalid_get_msg(value);896 value = jv_invalid_with_msg(jv_string_fmt("%s (while parsing '%s')",896 value = jv_invalid_with_msg(jv_string_fmt("%s (while parsing '%.*s')",897 jv_string_value(msg),898 length,899 string));900 jv_free(msg);901 }902 return value;
13 unmodified lines