Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 383 by [email protected]: No redzone created before first
global
https://code.google.com/p/address-sanitizer/issues/detail?id=383
AddressSanitizer does not seem to create a redzone before the first global
variable. Consider the following example:
int global1 = 123;
int global2 = 456;
int main()
{
int v = *(&global1 - 1);
return 0;
}
ASAN does not catch the invalid read because no readzone exists before
global1. Reading from &global2 - 1 does trigger an ASAN error report. Is
this expected behaviour? I build with Clang 3.5 on a Ubuntu 14.04 x64
installation: clang -fsanitize=address -g -O0 test.c
Thanks!
--
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.