Skip to content
This repository was archived by the owner on Jun 9, 2020. It is now read-only.

find_region_range in mm.c is skipping regions by using RB_LEFT  #94

Description

@AlphaRne

Im getting overlapping regions errors with the original code as it
seems to skip sections when doing munmap.
find_region_range should iterate the tree by using RB_PREV or by going down the tree as below.

for (struct mm_region *r = leftmost;NULL != r;){
if (region_compare(&find, r) == 0){
leftmost = r;
r = RB_LEFT(r, tree);
} else
r = RB_RIGHT(r, tree);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions