Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i#2557: fix fencepost error in find_free_memory_in_region() #2559

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

derekbruening
Copy link
Contributor

Fixes an error where find_free_memory_in_region() thinks that an occupied
region that spans the requested endpoint is free, resulting in an infinite
loop in os_heap_reserve_in_region().

Manually tested on the app whose maps file hit this. (Creating a suite
test is non-trivial without a mock for the maps iterator.)

Fixes #2557

Fixes an error where find_free_memory_in_region() thinks that an occupied
region that spans the requested endpoint is free, resulting in an infinite
loop in os_heap_reserve_in_region().

Manually tested on the app whose maps file hit this.  (Creating a suite
test is non-trivial without a mock for the maps iterator.)

Fixes #2557
@derekbruening derekbruening merged commit 1447613 into master Jul 21, 2017
@derekbruening derekbruening deleted the i2557-find-free-region branch July 21, 2017 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant