mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
UBSAN: out of bound array read in json
json_lib.c:847:25: runtime error: index 200 out of bounds for type 'json_string_char_classes [128]' json_lib.c:847:25: runtime error: load of address 0x56286f7175a0 with insufficient space for an object of type 'json_string_char_classes' fixes main.json_equals and main.json_normalize
This commit is contained in:
parent
50fa94ea2b
commit
a4f0ae7c18
1 changed files with 1 additions and 1 deletions
|
@ -844,7 +844,7 @@ static int skip_key(json_engine_t *j)
|
|||
{
|
||||
int t_next, c_len;
|
||||
|
||||
if (json_instr_chr_map[j->s.c_next] == S_BKSL &&
|
||||
if (j->s.c_next< 128 && json_instr_chr_map[j->s.c_next] == S_BKSL &&
|
||||
json_handle_esc(&j->s))
|
||||
return 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue