This is a compiler-rt part.
The clang part is D48958.
See PR21530, https://github.com/google/sanitizers/issues/940.
Differential D48959
[compiler-rt][ubsan] Implicit Cast Sanitizer - integer truncation - compiler-rt part lebedev.ri on Jul 5 2018, 1:18 AM. Authored by
Details
This is a compiler-rt part. See PR21530, https://github.com/google/sanitizers/issues/940.
Diff Detail
Event TimelineComment Actions Looks good. I have a few questions, and would like some additional tests (explained in the comments). Thanks for working on this!
Comment Actions Like i said, not ready for the review :)
Comment Actions No problem, I just pointed out small things :-)
Comment Actions
Comment Actions Ping - any thoughts on the compiler-rt part? @vsk thank you for taking a look!
Comment Actions I have a nit I'd like to see addressed, otherwise LGTM.
Comment Actions Address @filcab's review nit - merge integer-truncation.{c,cpp} tests into one. Thank you for the review! Comment Actions FYI the test/ubsan/TestCases/ImplicitCast/integer-truncation-blacklist.c It runs the tests via android_compile.py, so i'm not sure this https://code.google.com/p/address-sanitizer/issues/detail?id=316 but this seems oddly similar to the other XFAILed cases... Right now that seems to be the only failing builder, |
If there is no this grouping, then i would need to default to GenericUB,
and that is not really correct, since this is not really UB.
What harm is in having this check-that-is-just-a-group in here?