gendx / lzma-rs

An LZMA decoder written in pure Rust
MIT License
129 stars 27 forks source link

Check endianness of headers #1

Closed gendx closed 7 years ago

gendx commented 7 years ago

Check whether the dictionary size and decompressed length headers use little-endian or big-endian encoding. The decompressed length is often replaced by a placeholder 0xFFFF_FFFF_FFFF_FFFF (in which case an end-of-stream marker is required instead), which makes it more difficult to test.