• Thayumanavar's avatar
    BUG#16402143 - STACK CORRUPTION IN DBUG_EXPLAIN · 348d14c7
    Thayumanavar authored
    DESCRIPTION AND FIX:
    DBUG_EXPLAIN result in buffer overflow when the
    DEBUG variable values length exceed 255.
    In _db_explain_ function which call macro str_to_buf
    incorrectly passes the length of buf avaliable to
    strnmov as len+1. The fix calculates the avaliable
    space in buf and passes it to strnxmov.
    348d14c7
dbug.c 60.8 KB