Commit 17867608 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

ASAN heap-use-after-free in Item_exists_subselect::is_top_level_item

check that we can do type casting
parent 33ede50f
...@@ -1234,7 +1234,9 @@ longlong Item_func_truth::val_int() ...@@ -1234,7 +1234,9 @@ longlong Item_func_truth::val_int()
bool Item_in_optimizer::is_top_level_item() bool Item_in_optimizer::is_top_level_item()
{ {
if (!invisible_mode())
return ((Item_in_subselect *)args[1])->is_top_level_item(); return ((Item_in_subselect *)args[1])->is_top_level_item();
return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment