Apache Commons Compress 1.20 发布了,Commons Compress 用以实现将文件压缩或解压成 tar、zip、bzip2 等格式。
Bug 修复:
- SevenZFile 可能会为某些档案抛出 NullPointerException 而不是 IOException。 此外,它现在可以更优雅地处理某些空档案。
- 对于某些输入,Deflate64CompressorInputStream.read 将返回 0,这违反了 InputStream.read 合约。
- SeekableInMemoryByteChannel 的截断未在边缘情况下根据规范设置位置。
- BZip2CompressorInputStream 现在包含与修复 libbzip2 中的 CVE-2019-12900 的补丁类似的补丁。