[PATCH] D40295: -fsanitize=vptr warnings on bad static types in dynamic_cast and typeid
Stephan Bergmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 24 03:22:41 PST 2017
sberg updated this revision to Diff 124154.
sberg added a comment.
Oh, I'd meant to upload the version of the patch where the newly added calls to EmitTypeCheck use the default Alignment and SkippedChecks arguments, instead of explicitly skipping Alignment and ObjectSize checks. (That's the version I had successfully used in a LibreOffice UBSan 'make check' test build. But I still don't know which version is better.)
https://reviews.llvm.org/D40295
Files:
clang/lib/CodeGen/CGExpr.cpp
clang/lib/CodeGen/CGExprCXX.cpp
clang/lib/CodeGen/CodeGenFunction.h
compiler-rt/lib/ubsan/ubsan_handlers.cc
compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40295.124154.patch
Type: text/x-patch
Size: 14126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171124/9d0658e5/attachment-0001.bin>
More information about the cfe-commits
mailing list