diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2019-09-30 14:43:32 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2019-09-30 14:43:32 +0400 |
commit | 6ac2a355531832db250b37e7145a3eac2293b51b (patch) | |
tree | db01a8c4899e49edd3a2930861af94fc23e5862f /strings | |
parent | 2911a9a693512ec7d4903313028d252a8374e56e (diff) | |
download | mariadb-git-6ac2a355531832db250b37e7145a3eac2293b51b.tar.gz |
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.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/json_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c index 77b41dceb20..e09082470e8 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -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) |