Skip to content

Commit

Permalink
Prevent _find_and_delete_overlapping_children from deleting children (#…
Browse files Browse the repository at this point in the history
…396)

which are next to the freed region, but not overlapping.
  • Loading branch information
rbs-afflitto authored Jan 12, 2024
1 parent bce385f commit a32f787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofrak_core/ofrak/core/free_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ async def _find_and_delete_overlapping_children(resource: Resource, freed_range:
tags=(MemoryRegion,),
attribute_filters=(
ResourceAttributeRangeFilter(MemoryRegion.VirtualAddress, max=freed_range.end),
ResourceAttributeRangeFilter(MemoryRegion.EndVaddr, min=freed_range.start),
ResourceAttributeRangeFilter(MemoryRegion.EndVaddr, min=freed_range.start + 1),
),
),
)
Expand Down

0 comments on commit a32f787

Please sign in to comment.