mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
MDEV-25420 JSON_TABLE: ASAN heap-buffer-overflow in Protocol::net_store_data or consequent failures.
Create_tmp_table::add_field didn't consider BIT type field for null_counter.
This commit is contained in:
parent
277aa532f3
commit
59f3399e29
3 changed files with 29 additions and 4 deletions
|
@ -832,5 +832,14 @@ x TEXT PATH '$[9]')) AS jt GROUP BY x;
|
|||
x COUNT(*)
|
||||
NULL 1
|
||||
#
|
||||
# MDEV-25408 JSON_TABLE: AddressSanitizer CHECK failed in Binary_string::realloc_raw.
|
||||
#
|
||||
SELECT * FROM JSON_TABLE('{}', '$' COLUMNS(
|
||||
a TEXT EXISTS PATH '$', b VARCHAR(40) PATH '$', c BIT(60) PATH '$', d VARCHAR(60) PATH '$', e BIT(62) PATH '$',
|
||||
f FOR ORDINALITY, g INT PATH '$', h VARCHAR(36) PATH '$', i DATE PATH '$', j CHAR(4) PATH '$'
|
||||
)) AS jt;
|
||||
a b c d e f g h i j
|
||||
1 NULL NULL NULL |