-
Notifications
You must be signed in to change notification settings - Fork 29
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
Invalid memory mapping (UC_ERR_MAP) #10
Comments
I don't get any errors from unicorn, at least just from those lines. Happy to take a look in the next day or so if you want to post the full output and target binary. |
I get a very similar error when I compile the RC4 sample to 32-bit (
Here's the relevant part of the code: self.mu.mem_map(0x8048000L,0x4000)
self.mu.mem_map(0x804a000L,0x4000)
self.mu.mem_map(0x7ffff000,0x200000)
self.mu.mem_write(0x804a020L, self.data_0)
self.mu.mem_write(0x80484cbL, self.code_0)
self.mu.mem_write(0x80485b1L, self.code_1) It seems that the mappings overlap: If I change the size of the first mapping to 0x1000 (still plenty to hold the data) the issue goes away. |
I ran into this error on stream recently. One underlying issue is that if you want to emulate arguments, ripr needs to make sure that region doesn't overlap with existing sections. I'll probably whip up a PR to make that change in a little bit. In the meantime, an easy hack is to just rebase the entire binary to a different offset. |
Hello,
From an so library :
ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
I got unicorn.unicorn.UcError: Invalid memory mapping (UC_ERR_MAP)
self.mu = Uc(UC_ARCH_X86, UC_MODE_32)
is there some hints ?
The text was updated successfully, but these errors were encountered: