• Mats Kindahl's avatar
    Bug #37150 Risk for crash in User_var_log_event::exec_event() · b9d6d4c0
    Mats Kindahl authored
    On certain kinds of errors (e.g., out of stack), a call to Item_func_
    set_user_var::fix_fields() might fail.  Since the return value of this
    call was not checked inside User_var_log_event::exec_event(), continuing
    execution after this will cause a crash inside Item_func_set_user_var::
    update_hash().
    
    The bug is fixed by aborting execution of the event with an error if
    fix_fields() fails, since it is not possible to continue execution anyway.
    b9d6d4c0
log_event.cc 166 KB