Commit acd8a730 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'liblzma-signed-shift'

8479dc46 liblzma: Avoid possible overflow on signed left shift
parents 36d9a01a 8479dc46
......@@ -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]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment