mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-25186 JSON_TABLE: ASAN global-buffer-overflow in my_strnncoll_binary upon inserting query with join into query cache.
This commit is contained in:
@ -3388,9 +3388,10 @@ Query_cache::register_tables_from_list(THD *thd, TABLE_LIST *tables_used,
|
|||||||
tables_used;
|
tables_used;
|
||||||
tables_used= tables_used->next_global, n++, (*block_table)++)
|
tables_used= tables_used->next_global, n++, (*block_table)++)
|
||||||
{
|
{
|
||||||
if (tables_used->is_anonymous_derived_table())
|
if (tables_used->is_anonymous_derived_table() ||
|
||||||
|
tables_used->table_function)
|
||||||
{
|
{
|
||||||
DBUG_PRINT("qcache", ("derived table skipped"));
|
DBUG_PRINT("qcache", ("derived table or table function skipped"));
|
||||||
n--;
|
n--;
|
||||||
(*block_table)--;
|
(*block_table)--;
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user