From 22fb321d059aba283deade0a81528fd148fda7c3 Mon Sep 17 00:00:00 2001 From: barter-simsum Date: Tue, 12 Mar 2024 19:16:12 -0400 Subject: [PATCH] pma: clear pending_flist after completion of _pending_flist_merge use-after-free was responsible for crash --- rust/ares_pma/c-src/btree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/ares_pma/c-src/btree.c b/rust/ares_pma/c-src/btree.c index a796748..29693cc 100644 --- a/rust/ares_pma/c-src/btree.c +++ b/rust/ares_pma/c-src/btree.c @@ -1134,6 +1134,7 @@ _pending_flist_merge(BT_state *state) src_head = src_head->next; free(prev); } + state->pending_flist = 0; }