1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

We have to bswap32 lzma_properties on big-endian machines.

This commit is contained in:
Markus F.X.J. Oberhumer 2006-11-12 18:10:42 +01:00
parent 713415c354
commit 9d0270dcd6

View File

@ -257,6 +257,9 @@ void Packer::defineDecompressorSymbols()
(res->lit_context_bits << 0) |
(res->lit_pos_bits << 8) |
(res->pos_bits << 16);
// big endian - bswap32
if (getFormat() >= 128)
set_be32(&properties, properties);
linker->defineSymbol("lzma_properties", properties);
// -2 for properties