[PATCH] D48958: [clang][ubsan] Implicit Cast Sanitizer - integer truncation - clang part
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 26 08:16:23 PDT 2018
aaron.ballman added inline comments.
================
Comment at: docs/UndefinedBehaviorSanitizer.rst:93-97
+ - ``-fsanitize=implicit-integer-truncation``: Implicit cast from integer
+ of bigger bit width to smaller bit width, if that results in data loss.
+ That is, if the demoted value, after casting back to the original width,
+ is not equal to the original value before the downcast. This issue may
+ often be caused by an implicit integer conversions.
----------------
How about: `Implicit cast from a value of integral type which results in data loss where the demoted value, when cast back to the original type, would have a different value than the original. This issue may be caused by an implicit conversion.`
Repository:
rC Clang
https://reviews.llvm.org/D48958
More information about the cfe-commits
mailing list