Skip to content

Commit

Permalink
pma: clear pending_flist after completion of _pending_flist_merge
Browse files Browse the repository at this point in the history
use-after-free was responsible for crash
  • Loading branch information
barter-simsum committed Mar 12, 2024
1 parent f68a95e commit 22fb321
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rust/ares_pma/c-src/btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ _pending_flist_merge(BT_state *state)
src_head = src_head->next;
free(prev);
}
state->pending_flist = 0;
}


Expand Down

0 comments on commit 22fb321

Please sign in to comment.