diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2017-11-11 13:54:56 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2017-11-11 13:54:56 +0400 |
commit | 1e2d4f677e08294691a7d218acb3b9f78727ae18 (patch) | |
tree | 5e2fae3484f831e371225ae406b699041bd62b7c /strings | |
parent | dcbf2823c7d64380f06372d77d1522e97fb8f066 (diff) | |
download | mariadb-git-1e2d4f677e08294691a7d218acb3b9f78727ae18.tar.gz |
MDEV-13971 crash in skip_num_constant.
Character bigger than 0x60 wasn't handled properly
inside a numeric constant.
Diffstat (limited to 'strings')
-rw-r--r-- | strings/json_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c index cf99afd6f7b..413ce128149 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -503,7 +503,7 @@ static int skip_num_constant(json_engine_t *j) for (;;) { j->num_flags|= json_num_state_flags[state]; - if ((c_len= json_next_char(&j->s)) > 0) + if ((c_len= json_next_char(&j->s)) > 0 && j->s.c_next < 128) { if ((state= json_num_states[state][json_num_chr_map[j->s.c_next]]) > 0) { |