[PATCH] D50901: [clang][ubsan] Split Implicit Integer Truncation Sanitizer into unsigned and signed checks
Roman Lebedev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 17 08:03:14 PDT 2018
lebedev.ri created this revision.
lebedev.ri added reviewers: rsmith, vsk, Sanitizers.
lebedev.ri added projects: Sanitizers, clang.
As per IRC disscussion, it seems we really want to have more fine-grained `-fsanitize=implicit-integer-truncation`:
- A check when both of the types are unsigned.
- Another check for the other cases (either one of the types is signed, or both of the types is signed).
This is clang part.
Compiler-rt part is .
Repository:
rC Clang
https://reviews.llvm.org/D50901
Files:
docs/UndefinedBehaviorSanitizer.rst
include/clang/Basic/Sanitizers.def
lib/CodeGen/CGExprScalar.cpp
test/CodeGen/catch-implicit-integer-conversions-basics.c
test/CodeGen/catch-implicit-integer-truncations-basics-negatives.c
test/CodeGen/catch-implicit-integer-truncations-basics.c
test/CodeGen/catch-implicit-integer-truncations.c
test/CodeGen/catch-implicit-signed-integer-truncations-basics-negatives.c
test/CodeGen/catch-implicit-signed-integer-truncations-basics.c
test/CodeGen/catch-implicit-unsigned-integer-truncations-basics-negatives.c
test/CodeGen/catch-implicit-unsigned-integer-truncations-basics.c
test/CodeGenCXX/catch-implicit-integer-truncations.cpp
test/Driver/fsanitize.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50901.161249.patch
Type: text/x-patch
Size: 52465 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180817/48761a3d/attachment-0001.bin>
More information about the cfe-commits
mailing list