• Ashish Agarwal's avatar
    BUG#13555854: CHECK AND REPAIR TABLE SHOULD BE MORE ROBUST [1] · 5f313125
    Ashish Agarwal authored
    ISSUE: Incorrect key file. Key file is corrupted,
           Reading incorrect key information (keyseg)
           from index file. Key definition in .MYI
           and .FRM file differs. Starting pointer
           to read the keyseg information is changed
           to a value greater than the pack_reclength.
           Memcpy tries to read keyseg information from
           unallocated memory which causes the crash.
    
    SOLUTION: One more check added to compare the
              the key definition in .MYI and .FRM
              file. If the definition differ, server
              produces an error.
    5f313125
ha_myisam.cc 71.1 KB