summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-26 13:52:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-05-26 13:52:53 (GMT)
commitacd8a73044e879286f0cfa24b54497a8307f204b (patch)
tree72e7798302bd3f0dc8b31e5f48d8ea2d451f9bee
parent36d9a01a31560ff3eb66e914c0a36a5d6a09844a (diff)
parent8479dc46f12831c7736ce59b5833e43509899f7d (diff)
downloadCMake-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.c2
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]