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:
Oleksandr Byelkin 2021-01-29 11:18:06 +01:00
parent 33ede50f20
commit 17867608a2

View file

@ -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;
}