[PATCH] [clang/asan] call __asan_poison_cxx_array_cookie after operator new[]

Kostya Serebryany kcc at google.com
Mon Aug 25 16:24:59 PDT 2014


Use expr->getOperatorNew()->isReplaceableGlobalAllocationFunction()
and add a test to verify that new (std::nothrow) X[n] is instrumented.

PTAL

http://reviews.llvm.org/D4774

Files:
  lib/CodeGen/CodeGenFunction.cpp
  lib/CodeGen/ItaniumCXXABI.cpp
  lib/CodeGen/SanitizerMetadata.cpp
  lib/CodeGen/SanitizerMetadata.h
  test/CodeGen/address-sanitizer-and-array-cookie.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4774.12924.patch
Type: text/x-patch
Size: 5431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140825/4f0912ca/attachment.bin>


More information about the cfe-commits mailing list