mirror of
https://github.com/MariaDB/server.git
synced 2025-07-20 10:24:14 +03:00
MDEV-19628 JSON with starting double quotes key is not valid.
First character of the key name is just skipped, so the escapement wasn't handled properly.
This commit is contained in:
@ -825,6 +825,8 @@ static int skip_colon(json_engine_t *j)
|
||||
static int skip_key(json_engine_t *j)
|
||||
{
|
||||
int t_next, c_len;
|
||||
|
||||
j->s.c_str-= j->sav_c_len;
|
||||
while (json_read_keyname_chr(j) == 0) {}
|
||||
|
||||
if (j->s.error)
|
||||
|
Reference in New Issue
Block a user