[PATCH] D49589: [UBSan] Strengthen pointer checks in 'new' expressions

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 25 10:29:35 PDT 2018


sepavloff updated this revision to Diff 157305.
sepavloff added a comment.

Updated patch

Now the information, if the pointer produced by 'new' operator is checked,
is stored in objects used for pointer representation (`Address` and
`AggValueSlot`) rather than globally.

Also the tests were cleaned up a bit.


Repository:
  rC Clang

https://reviews.llvm.org/D49589

Files:
  lib/CodeGen/Address.h
  lib/CodeGen/CGClass.cpp
  lib/CodeGen/CGExprCXX.cpp
  lib/CodeGen/CGValue.h
  test/CodeGenCXX/ubsan-new-checks.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49589.157305.patch
Type: text/x-patch
Size: 9076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180725/4dfc8ccd/attachment.bin>


More information about the cfe-commits mailing list