steleman / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

AddressSanitizer does not catch "obvious" bugs #374

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
int main() {
  int * p = new int[10];
  delete[] p;
  *p = 1;
}

No report at -O1 or higher.
And no warning, either! Even with -W -Wall -Wextra.

Original issue reported on code.google.com by euge...@google.com on 15 Jan 2015 at 10:19

GoogleCodeExporter commented 9 years ago
GCC does detect error at runtime.

Original comment by tetra20...@gmail.com on 15 Jan 2015 at 10:48