Unmap over several pages not correctly unmapping each page individually
Caesurus opened this issue · comments
Caesurus commented
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.