Commit bf250308 authored by Kyle Edwards's avatar Kyle Edwards

liblzma: fix undefined shift result

When a 32-bit integer is shifted left by 32 bits, the result is
undefined. Shift a 64-bit integer instead.
parent ee555c2a
......@@ -97,7 +97,7 @@ x86_code(void *simple_ptr, uint32_t now_pos, bool is_encoder,
if (!Test86MSByte(b))
break;
src = dest ^ ((1u << (32 - i * 8)) - 1);
src = dest ^ ((1ull << (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