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

Richard Smith richard at metafoo.co.uk
Thu Aug 21 11:25:20 PDT 2014


Is this change correct? Suppose I do this:

    char Buffer[32];
    // ...
    new (Buffer) int[4];
    // ...
    new (Buffer) int(0);

Won't we get a false positive on the last line?

http://reviews.llvm.org/D4774






More information about the cfe-commits mailing list