mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +08:00
new-op.c: Add comment about -fsanitize=address
gdb/ChangeLog: 2016-10-25 Pedro Alves <palves@redhat.com> * common/new-op.c: Add comment about -fsanitize=address.
This commit is contained in:
parent
28fe4f87e0
commit
e4426cb42f
@ -1,3 +1,7 @@
|
||||
2016-10-25 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* common/new-op.c: Add comment about -fsanitize=address.
|
||||
|
||||
2016-10-25 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* common/common-defs.h (__STDC_CONSTANT_MACROS)
|
||||
|
@ -33,6 +33,12 @@
|
||||
new-handler function instead (std::set_new_handler) because we want
|
||||
to catch allocation errors from within global constructors too.
|
||||
|
||||
Skip overriding if building with -fsanitize=address though.
|
||||
Address sanitizer wants to override operator new/delete too in
|
||||
order to detect malloc+delete and new+free mismatches. Our
|
||||
versions would mask out ASan's, with the result of losing that
|
||||
useful mismatch detection.
|
||||
|
||||
Note that C++ implementations could either have their throw
|
||||
versions call the nothrow versions (libstdc++), or the other way
|
||||
around (clang/libc++). For that reason, we replace both throw and
|
||||
|
Loading…
Reference in New Issue
Block a user