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:
parent
713415c354
commit
9d0270dcd6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user