diff options
| author | Sean McBride <sean@rogue-research.com> | 2012-11-29 23:20:11 (GMT) |
|---|---|---|
| committer | David Cole <david.cole@kitware.com> | 2012-11-30 13:04:48 (GMT) |
| commit | 6a6a6f36707f9588249990eb2d67e414d2eebd38 (patch) | |
| tree | cd7349d53c34c5d5bf781ce8e8e61fe104078360 /Tests/Tutorial/Step6/MathFunctions | |
| parent | e0af55a5f4cd84db1cc5a3517e730ea8c6332f45 (diff) | |
| download | CMake-6a6a6f36707f9588249990eb2d67e414d2eebd38.zip CMake-6a6a6f36707f9588249990eb2d67e414d2eebd38.tar.gz CMake-6a6a6f36707f9588249990eb2d67e414d2eebd38.tar.bz2 | |
libarchive: fixed undefined left shift with signed ints
caught by clang's -fsanitize=shift. A small unsigned int was
promoted, according to C's regular promotion rules, to a signed
int, it was then left shifted. This sometimes pushed a 1 into
the sign bit, which is undefined behaviour. Fixed by using
unsigned temporaries.
Diffstat (limited to 'Tests/Tutorial/Step6/MathFunctions')
0 files changed, 0 insertions, 0 deletions
