DynamoRIO / DynamoRIO/drmemory

exe ASLR causes -libc_addrs to fail

Open
#523 0 comments 0 reactions 0 assignees View on GitHub
Migrated OpSys-Cygwin Priority-Medium
Dominant language
C
Stars
2.7k
Forks
290
PR merge metrics
No merged PRs in 30d

Description

_From [bruen...@google.com](https://code.google.com/u/109494838902877177630/) on July 28, 2011 17:39:49_

tests/patterns on win7 cygwin build:

Error `#1`: UNADDRESSABLE ACCESS: reading 0x00d9eaba-0x00d9eabc 2 byte(s) within 0x00d9eab8-0x00d9eabc
Elapsed time = 0:00:04.891 in thread 4220
Note: prev lower malloc: 0x00d9eab8-0x00d9eaba
0x01341333 patterns.exe!strcat+0x93
f:\dd\vctools\crt_bld\SELF_X86\crt\src\INTEL\strcat.asm:182+0x0
0x01341aa4 patterns.exe!__tmainCRTStartup+0xfa
f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c:266+0x11
0x75a23677 KERNEL32.dll!BaseThreadInitThunk+0x11

=> strcat not being replaced b/c of ASLR on patterns.exe:

-libc_addrs 40af40,40d0e0,401390,401450,401510,401200,412e10,41627a,401290,?,4012a0,?,408520

executable is 0x011f0000-0x0121f000
replacing strcat @0x004012a0 in executable from options

_Original issue: http://code.google.com/p/drmemory/issues/detail?id=523_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.