Merge topic 'liblzma-signed-shift'

8479dc46 liblzma: Avoid possible overflow on signed left shift
This commit is contained in:
Brad King 2016-05-26 09:52:53 -04:00 committed by CMake Topic Stage
commit acd8a73044

View File

@ -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]