• Marko Mäkelä's avatar
    MDEV-29471 Buffer overflow in page_cur_insert_rec_low() · c0470caf
    Marko Mäkelä authored
    In commit 244fdc43 (MDEV-29438)
    we made sure that if the preceding record is the page infimum record,
    no more than 8 bytes will be read from it. But, if the data payload of
    the being-inserted record is less than 8 bytes (this can happen in
    secondary indexes), we must not compare all 8 bytes.
    
    This was caught by a failure of the test gcol.innodb_virtual_basic
    under MemorySanitizer and some builds with AddressSanitizer.
    c0470caf
page0cur.cc 103 KB