mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
MDEV-26817 runtime error: index 24320 out of bounds for type 'json_string_char_classes [128] *and* ASAN: global-buffer-overflow on address ... READ of size 4 on SELECT JSON_VALID
protect from out-of-bound array access it was already done in all other places, this one was the only one missed
This commit is contained in:
parent
fc292f42be
commit
0c27559994
1 changed files with 1 additions and 1 deletions
|
@ -826,7 +826,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…
Reference in a new issue