ubsan: Add -fsanitize=bool and -fsanitize=enum, which check for loads of
bit-patterns which are not valid values for enumerated or boolean types. These checks are the ubsan analogue of !range metadata. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@170108 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- docs/UsersManual.rst 5 additions, 0 deletionsdocs/UsersManual.rst
- include/clang/Basic/Sanitizers.def 6 additions, 3 deletionsinclude/clang/Basic/Sanitizers.def
- lib/CodeGen/CGExpr.cpp 38 additions, 11 deletionslib/CodeGen/CGExpr.cpp
- test/CodeGen/catch-undef-behavior.c 9 additions, 1 deletiontest/CodeGen/catch-undef-behavior.c
- test/CodeGenCXX/catch-undef-behavior.cpp 34 additions, 1 deletiontest/CodeGenCXX/catch-undef-behavior.cpp
- test/Driver/fsanitize.c 2 additions, 4 deletionstest/Driver/fsanitize.c
Loading
Please register or sign in to comment