Status: New
Owner: [email protected]
Labels: Type-Defect Priority-Medium
New issue 286 by [email protected]: __sanitizer_sanitize functions should
setup GOT pointer on i386
http://code.google.com/p/address-sanitizer/issues/detail?id=286
i386 ABI mandates that exported functions setup pointer to GOT table in EBX
register before calling any external symbols from PLT. Otherwise calls to
these functions from other shared objects are likely to fail (because they
will use pointers to invalid GOTs which will likely cause a segfault).
I suggest to setup EBX right before __asan_report_store1@PLT to avoid
slowing down the fast path.
What steps will reproduce the problem?
1. call __sanitizer_sanitize_store1 from DSO
What is the expected output? What do you see instead?
==26920==ERROR: AddressSanitizer: SEGV on unknown address 0x00000000 (pc
0x00000000 sp 0xffffb69c bp 0xffffb6b4 T0)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ??:0 ??
==26920==ABORTING
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"address-sanitizer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.