[File] [PATCH] Add -z/-Z support for LZMA compressed files

Christoph Biedl astron.com.bwoj at manchmal.in-ulm.de
Thu Jul 18 14:00:12 UTC 2019


Hi there,

while working on other issues, I noticed --uncompress/
--uncompress-noreport is not supported for LZMA compressed files.
Adding this was not too diffcult but it seemed wise to add a length
check for the callback compression detection as well to avoid
out-of-bound reads. I abused maglen for this, feel free to hate me.

Additionally I added the number of the compression method check in
the definition list, just to avoid confusion in the things that
are about to come next.

Cheers,

    Christoph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-uncompress-support-for-lzma-compressed-files.patch
Type: text/x-diff
Size: 3465 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20190718/125072ba/attachment.bin>


More information about the File mailing list