Skip to content

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

@Caesurus

Description

@Caesurus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions