From 2ae92e89817b1eceed134fcf98e21f99ce26a22d Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Sat, 9 Apr 2022 23:01:26 +0400 Subject: MDEV-28267 ASAN heap-use-after-free in Item_sp::func_name_cstring This crash happens on a combination of multiple conditions: - There is a thead#1 running an "ANALYZE FORMAT=JSON" query for a "SELECT .. FROM INFORMATION_SCHEMA.COLUMNS WHERE .. " - The WHERE clause contains a stored function call, say f1(). - The WHERE clause is built in the way so that the function f1() is never actually called, e.g. WHERE .. AND (TRUE OR f1()=expr) - The database contains multiple VIEWs that have the function f1() call, e.g. in their