Skip to content

Commit

Permalink
Revert "Fix use-after-free in iobank rbtree usage ##io"
Browse files Browse the repository at this point in the history
This reverts commit 3789722.
  • Loading branch information
condret committed Apr 23, 2022
1 parent ead0cee commit dfeb6b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions libr/io/io_bank.c
Expand Up @@ -236,10 +236,7 @@ R_API bool r_io_bank_map_add_top(RIO *io, const ut32 bankid, const ut32 mapid) {
//delete all submaps that are completly included in sm
RRBNode *next = r_rbnode_next (entry);
// this can be optimized, there is no need to do search here
bool a = r_crbtree_delete (bank->submaps, entry->data, _find_sm_by_from_vaddr_cb, NULL);
if (!a) {
break;
}
r_crbtree_delete (bank->submaps, entry->data, _find_sm_by_from_vaddr_cb, NULL);
entry = next;
}
if (entry && r_io_submap_from (((RIOSubMap *)entry->data)) <= r_io_submap_to (sm)) {
Expand Down

0 comments on commit dfeb6b0

Please sign in to comment.