Open XVilka opened 4 years ago
Could you document how standard this "Broadcom modification" is?
I won't have much time to investigate this in the following weeks, but feel free to send a pull-request to support this variant of the algorithm (preferably using a decoding option if there's something non-standard involved).
I don't think it's a standard one, but quite common among compressed firmware images.
@XVilka are you able to share how you decompressed these?
@voltagex you can see the https://github.com/firmadyne/sasquatch/tree/master/LZMA/lzmalt
@XVilka yes, this creates a library, not a program - did you write something to use this library to decompress the data?
Unpacking the data, and noted that some streams can't be unpacked with lzma-rs, see the attached files of the compressed and uncompressed chunks.
lzma_alt_samples.zip
The chunks were successfully unpacked with this library instead: https://github.com/firmadyne/sasquatch/tree/master/LZMA/lzmalt
The algorithm itself seems came out of the Broadcom LZMA modification.