Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium OpSys-All

New issue 314 by [email protected]: Left OOB accesses on new[]-allocated arrays with array cookies are not detected
http://code.google.com/p/address-sanitizer/issues/detail?id=314

Left OOB accesses on new[]-allocated arrays with array cookies are not detected

Repro:
----------------------
struct C {
  int x;
  ~C() {}
};

int main() {
  C *buffer = new C[42];
  buffer[-2].x = 42;
  delete [] buffer;
}
----------------------
-> No report AND it hangs!

[-2] is not detected on Linux x64;
[-3] is detected.

--
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.

Reply via email to