• Ramil Kalimullin's avatar
    Fix for bug #53237: mysql_list_fields/COM_FIELD_LIST stack smashing · 933e5ca5
    Ramil Kalimullin authored
    Problem: "COM_FIELD_LIST is an old command of the MySQL server, before there was real move to only
    SQL. Seems that the data sent to COM_FIELD_LIST( mysql_list_fields() function) is not
    checked for sanity. By sending long data for the table a buffer is overflown, which can
    be used deliberately to include code that harms".
    
    Fix: check incoming data length.
    933e5ca5
sql_parse.cc 245 KB