HomePhabricator

-fsanitize=vptr warnings on bad static types in dynamic_cast and typeid

Description

-fsanitize=vptr warnings on bad static types in dynamic_cast and typeid

...when such an operation is done on an object during con-/destruction.

(This adds a test case to compiler-rt/test/ubsan/TestCases/TypeCheck/vptr.cpp
that, unlike the existing test cases there, wants to detect multiple UBSan
warnings in one go. Therefore, that file had to be changed from globally using
-fno-sanitize-recover to individually using halt_on_error only where
appropriate.)

This is the compiler-rt part of a patch covering both cfe and compiler-rt.

Differential Revision: https://reviews.llvm.org/D40295

Details

Committed
sbergDec 28 2017, 4:45 AM
Differential Revision
D40295: -fsanitize=vptr warnings on bad static types in dynamic_cast and typeid
Branches
Unknown
Tags
Unknown