jalcaldea / 7z-stream

7z-stream is a streaming 7z parser.
MIT License
5 stars 3 forks source link

Some LZMA2 archives can't be read #5

Open lesderid opened 4 years ago

lesderid commented 4 years ago

LZMA2 archives can do (partial) state and dictionary resets before each LZMA2 packet. This isn't yet supported because the LZMA package that is used (lzma-purejs) doesn't expose such functionality, as it's not used in LZMA1.

Due to this, all (most?) single-file LZMA2 archives can be read, but many multi-archives cannot.

lesderid commented 4 years ago

This should be fixable by using LZMA.Decoder from lzma-purejs directly instead of using the decompress function. I will probably look into this in a few days.