• Ramil Kalimullin's avatar
    Fix for bug#37669: Server crash by setting "@@session.innodb_table_locks" · d59b3713
    Ramil Kalimullin authored
    Problem: reading/writing data from/to an address without proper
    alignment leads to SIGBUS on some platforms.
    
    Fix: use the correct data type when dereferencing variable values.
    
    
    sql/sql_plugin.cc:
      Fix for bug#37669: Server crash by setting "@@session.innodb_table_locks"
      
      Use *(my_bool *) typecast to avoid misaligned reading/writing and 
      to get/set proper boolean values.
    d59b3713
sql_plugin.cc 95.1 KB