• Mats Kindahl's avatar
    Bug #37150 Risk for crash in User_var_log_event::exec_event() · dd6537c1
    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.
    
    
    sql/log_event.cc:
      Aborting execution of event if fix_fields() fails since execution
      of update_hash() might cause a crash.
    dd6537c1
log_event.cc 166 KB