• Marko Mäkelä's avatar
    MDEV-35053 Crash in purge_sys_t::iterator::free_history_rseg() · a298dfb8
    Marko Mäkelä authored
    purge_sys_t::get_page(): Avoid accessing a freed reference to pages[id]
    after pages.erase(id).  This heap-use-after-free would sometimes be
    caught by AddressSanitizer.
    
    purge_sys_t::iterator::free_history_rseg(): Do not crash if undo=nullptr
    (the database is corrupted).
    
    Reviewed by: Debarun Banerjee
    a298dfb8
trx0purge.cc 44.3 KB