diff options
author | Brad King <brad.king@kitware.com> | 2016-05-26 13:52:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-05-26 13:52:53 (GMT) |
commit | acd8a73044e879286f0cfa24b54497a8307f204b (patch) | |
tree | 72e7798302bd3f0dc8b31e5f48d8ea2d451f9bee | |
parent | 36d9a01a31560ff3eb66e914c0a36a5d6a09844a (diff) | |
parent | 8479dc46f12831c7736ce59b5833e43509899f7d (diff) | |
download | CMake-acd8a73044e879286f0cfa24b54497a8307f204b.zip CMake-acd8a73044e879286f0cfa24b54497a8307f204b.tar.gz CMake-acd8a73044e879286f0cfa24b54497a8307f204b.tar.bz2 |
Merge topic 'liblzma-signed-shift'
8479dc46 liblzma: Avoid possible overflow on signed left shift
-rw-r--r-- | Utilities/cmliblzma/liblzma/simple/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmliblzma/liblzma/simple/x86.c b/Utilities/cmliblzma/liblzma/simple/x86.c index 101d8ed..95858e5 100644 --- a/Utilities/cmliblzma/liblzma/simple/x86.c +++ b/Utilities/cmliblzma/liblzma/simple/x86.c @@ -103,7 +103,7 @@ x86_code(lzma_simple *simple, uint32_t now_pos, bool is_encoder, if (!Test86MSByte(b)) break; - src = dest ^ ((1 << (32 - i * 8)) - 1); + src = dest ^ ((1u << (32 - i * 8)) - 1); } buffer[buffer_pos + 4] |