mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
ASAN heap-use-after-free in Item_exists_subselect::is_top_level_item
check that we can do type casting
This commit is contained in:
parent
33ede50f20
commit
17867608a2
1 changed files with 3 additions and 1 deletions
|
@ -1234,7 +1234,9 @@ longlong Item_func_truth::val_int()
|
|||
|
||||
bool Item_in_optimizer::is_top_level_item()
|
||||
{
|
||||
return ((Item_in_subselect *)args[1])->is_top_level_item();
|
||||
if (!invisible_mode())
|
||||
return ((Item_in_subselect *)args[1])->is_top_level_item();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue