• Sergei Golubchik's avatar
    MDEV-20971 ASAN heap-use-after-free in list_delete / heap_close · cd156e2c
    Sergei Golubchik authored
    Don't save/restore HP_INFO as it could be changed by a concurrent thread.
    different parts of HP_INFO are protected by different mutexes and
    the mutex that protect most of the HP_INFO does not protect its open_list
    data.
    
    As a bonus, make heap_check_heap() to take const HP_INFO* and not
    make any changes there whatsoever.
    cd156e2c
_check.c 5.8 KB