Status: Accepted
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 373 by [email protected]: LeakSanitizer fails to detect an "obvious" leak
https://code.google.com/p/address-sanitizer/issues/detail?id=373

int main() {
  new int[10];
}

The leak is reported at -O0, but not at -O1 or higher.

It sounds like with LSan we should treat memory allocations as having side effects and never optimize them out. The problem is, we don't know about LSan at compilation time. We could do this in all ASan builds.


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