From 368dd22a816f3b437bccd0b9ff28b9de9b1abf0a Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 9 May 2023 13:09:00 +0300 Subject: MDEV-31223: UBSan error: sql_select.h:969:7: runtime error: load of value... In Loose_scan_opt::save_to_position, initialize POSITION::firstmatch_with_join_buf. --- sql/opt_subselect.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/opt_subselect.h b/sql/opt_subselect.h index c0398fc8539..8140a01974d 100644 --- a/sql/opt_subselect.h +++ b/sql/opt_subselect.h @@ -316,6 +316,7 @@ public: pos->loosescan_picker.loosescan_key= best_loose_scan_key; pos->loosescan_picker.loosescan_parts= best_max_loose_keypart + 1; pos->use_join_buffer= FALSE; + pos->firstmatch_with_join_buf= FALSE; pos->table= tab; pos->range_rowid_filter_info= tab->range_rowid_filter_info; pos->ref_depend_map= best_ref_depend_map; -- cgit v1.2.1