summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorFilipe Cabecinhas <me@filcab.net>2018-02-12 11:49:02 +0000
committerFilipe Cabecinhas <me@filcab.net>2018-02-12 11:49:02 +0000
commit4ba5817b8b7fe5f136c8f95287e02eeaa69d630b (patch)
tree0dfd492b46617b08674905f10015c76e903a7655 /llvm/lib/Target
parentcd5eb00e8ba9f51a608c0252af31dcb6a911b731 (diff)
downloadbcm5719-llvm-4ba5817b8b7fe5f136c8f95287e02eeaa69d630b.tar.gz
bcm5719-llvm-4ba5817b8b7fe5f136c8f95287e02eeaa69d630b.zip
ASan+operator new[]: Add an option for more thorough operator new[] cookie poisoning
Summary: Right now clang is skipping array cookie poisoning for any operator new[] which is not part of the set of replaceable global allocation functions. This commit adds a flag to tell clang to poison all operator new[] cookies. A previous review was poisoning all array cookies unconditionally, but there is an edge case which would stop working under ASan (a custom operator new[] saves whatever pointer it returned, and then accesses it). This newer revision adds a command line argument to toggle this feature. Original revision: https://reviews.llvm.org/D41301 Compiler-rt test revision with an explanation of the edge case: https://reviews.llvm.org/D41664 Reviewers: rjmccall, kcc, rsmith Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D43013 llvm-svn: 324884
Diffstat (limited to 'llvm/lib/Target')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud