[
https://issues.apache.org/jira/browse/COMPRESS-591?focusedWorklogId=654018&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-654018
]
ASF GitHub Bot logged work on COMPRESS-591:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 22/Sep/21 11:16
Start Date: 22/Sep/21 11:16
Worklog Time Spent: 10m
Work Description: coveralls commented on pull request #223:
URL: https://github.com/apache/commons-compress/pull/223#issuecomment-924832860
[](https://coveralls.io/builds/42992876)
Coverage increased (+0.01%) to 86.371% when pulling
**930ef6c4a3e89d22273b57454a4d31a198d6bff1 on PeterAlfredLee:COMPRESS-591**
into **8bdf82c0a49ade31ef7a035962327c633ade5801 on apache:master**.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 654018)
Time Spent: 40m (was: 0.5h)
> Fix decoding of 7z files containing LZMA streams with end marker
> ----------------------------------------------------------------
>
> Key: COMPRESS-591
> URL: https://issues.apache.org/jira/browse/COMPRESS-591
> Project: Commons Compress
> Issue Type: Bug
> Components: Archivers
> Affects Versions: 1.21
> Reporter: Lasse Collin
> Priority: Major
> Attachments: lzma-with-eos.7z
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Some uncommon but valid .7z files contain LZMA streams that use the end of
> stream marker. Currently Commons Compress together with XZ for Java considers
> such files to be corrupt.
> XZ for Java 1.9 added a new methodÂ
> [LZMAInputStream.enableRelaxedEndCondition()|https://tukaani.org/xz/xz-javadoc/org/tukaani/xz/LZMAInputStream.html#enableRelaxedEndCondition()]
> specifically for this issue. To use this feature in Commons Compress, a
> change is needed to the "decode" function in
> src/main/java/org/apache/commons/compress/archivers/sevenz/LZMADecoder.java:
> {{- return new LZMAInputStream(in, uncompressedLength, propsByte, dictSize);}}
> {{+ final LZMAInputStream lzmaIn = new LZMAInputStream(in,
> uncompressedLength, propsByte, dictSize);}}
> {{+ lzmaIn.enableRelaxedEndCondition();}}
> {{+ return lzmaIn;}}
> A tiny test file is attached (thanks to Simon for providing it). Another test
> file "sheet.7z" can be found from
> <[https://sourceforge.net/p/lzmautils/discussion/708858/thread/822d80d5ea/]>.
> XZ for Java 1.9 is already a few months old, so I apologize for not reporting
> this earlier.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)