[PATCH] call __asan_load_cxx_array_cookie when loading array cookie in asan mode.

Kostya Serebryany kcc at google.com
Thu Aug 28 15:42:09 PDT 2014


Hi rsmith,

The current implementation of asan cookie is incorrect:
we add nosanitize metadata to the cookie load, but the metadata may be lost
and we will instrument the load from poisoned memory.
This change replaces the load with a call to __asan_load_cxx_array_cookie (r216692)

http://reviews.llvm.org/D5111

Files:
  lib/CodeGen/ItaniumCXXABI.cpp
  test/CodeGen/address-sanitizer-and-array-cookie.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5111.13060.patch
Type: text/x-patch
Size: 2035 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140828/89878830/attachment.bin>


More information about the cfe-commits mailing list