Fix for BUG#15018 "valgrind error in Rpl_filter (uninitalized memory - could crash)".
The code was reading a HASH or DYNAMIC_ARRAY which may be uninited (difference from 5.0 is that those vars were always zeroed in 5.0 because were static globals, while they are new'd in 5.1). sql/rpl_filter.cc: the hash or dynamic_array may not be inited, depends on a bool (e.g. if wild_do_table_inited==0 wild_do_table is uninitialized memory); the code was not taking the bool into account and so reading uninited memory. sql/rpl_filter.h: comments and prototype change (see rpl_filter.cc)
Showing
Please register or sign in to comment