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

Unmap over several pages not correctly unmapping each page individually #323

Open
Caesurus opened this issue Jun 8, 2019 · 0 comments
Open

Comments

@Caesurus
Copy link
Contributor

Caesurus commented Jun 8, 2019

I have a binary that has the following memory mapped:

0x400000-0x449000 r-x [exe] ./ELFlsbRGB
0x6b5000-0x6b6000 rw- [exe] ./ELFlsbRGB(0xb5000)
0x800000-0xac4000 rwx [mmap]
0xbf800000-0xc0000000 rwx [stack]
0xffffffffff600000-0xffffffffff601000 r-x

The binary then attempts: mmap(0x400000, 0x2b6000, 0, 50, -1, 0x0) which results in an error: UC_ERR_MAP.

I think I have a fix and will issue a PR for your consideration.

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

No branches or pull requests

1 participant