• Nikita Malyavin's avatar
    MDEV-24041 Generated column DELETE with FOREIGN KEY crash InnoDB · 83d2e084
    Nikita Malyavin authored
    row_upd_clust_step() calls row_upd_del_mark_clust_rec() which would
    allocate some memory in row_ins_foreign_fill_virtual(). Then,
    row_upd_store_row() would access the allocated memory, but only after
    potentially freeing that memory by invoking mem_heap_empty(),
    leading to ASAN heap-use-after-free diagnostics.
    
    row_ins_foreign_fill_virtual(): Use a more appropriate memory heap with a
    longer lifetime.
    83d2e084
innodb_virtual_fk.test 21.8 KB