Comment #5 on issue 317 by jhietaniemi: -fsanitize=address doesn't detect
simple stack access violation
http://code.google.com/p/address-sanitizer/issues/detail?id=317
I see. How about this?
#include <stdio.h>
int main() {
char b[100];
printf("%d\n", b[100]);
}
This also gets optimized away, but I'd count that "optimizing away" being a
problem: it hides a genuine problem.
(Yes, if I compile with -O0, I get the expect sanitizer fault.)
--
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.