[PATCH] D49589: [UBSan] Strengthen pointer checks in 'new' expressions
Serge Pavlov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 24 12:09:47 PDT 2018
sepavloff updated this revision to Diff 157102.
sepavloff added a comment.
Updated patch
- Modified check generation. Now for each 'new' expression compiler tries to
generate the checks. It solves problem of 'nested' new expressions, which
appear when 'new' is used in default arguments.
- Field and RAII class names are made more specific.
- Added new tests including that with inplace new operator.
Repository:
rC Clang
https://reviews.llvm.org/D49589
Files:
lib/CodeGen/CGClass.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/ubsan-new-checks.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49589.157102.patch
Type: text/x-patch
Size: 6731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180724/4437c469/attachment.bin>
More information about the cfe-commits
mailing list