1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-13970 crash in Item_func_json_extract::read_json.

Item_func_json_extract::val_int fixed.
        It wasn't tested yet as it's called in exotic cases only.
This commit is contained in:
Alexey Botchkov
2017-12-25 08:10:48 +04:00
parent 6e7ca6b0b2
commit f0f3b6549a
3 changed files with 17 additions and 3 deletions

View File

@ -383,3 +383,12 @@ select json_contains_path('{"foo":"bar"}', 'one', '$[]');
# MDEV-13971 crash in skip_num_constant.
#
select JSON_VALID(0x36f0c8dccd83c5eac156da);
#
# MDEV-13970 crash in Item_func_json_extract::read_json.
#
create table t1(a double not null);
insert into t1 values (2),(1);
select 1 from t1 where json_extract(a,'$','$[81]');
drop table t1;