This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a change to branch pack200
in repository https://gitbox.apache.org/repos/asf/commons-compress.git.
from e3ea7b6 Renamed the package org.apache.harmony to
org.apache.commons.compress.harmony to more easily track potential future
changes.
add 92d9df3 ignore Pack200 tests for jdk14+ (#129)
add 4ede294 Trigger GitHub builds for PRs.
add 08d754c COMPRESS-548 : throw exception if length of zip extra field
is too short
add a0ec219 Use US English spelling.
add 319a848 COMPRESS-554 : throw IOExcepiton if error is met
add 3b28227 COMPRESS-554 : update name of testcase
add 4eb3bbe COMPRESS-547 : add asserts for Arrays.copyOf
add a40c53d COMPRESS-550 : add writePreamble to ZipArchiveInputStream
add b0d590d COMPRESS-550 : document in changes
add db932dd Bump actions/setup-java from v1.4.1 to v1.4.2 (#133)
add 876ee87 Update actions/setup-java from v1.4.1 to v1.4.2 #133.
add 550e525 Update actions/setup-java from v1.4.1 to v1.4.2 #133.
add cf2f6c6 Replace Java 14 with Java 15 as the latest Java version to
test. Use Jaav 16 EA as the EA version to test.
add 0628668 Use uppercase for long literal suffix.
add 8a65cc9 Fix for CFH detect in ZipArchiveInputStream
add 555daa4 COMPRESS-553 : fix for pax header of tar
add 5c6f14c update CRLF to LF
add 294f555 Add SECURITY.MD.
add f56300c Use lambdas.
add ef3cad0 Modify some calls of method Collection.toArray
add 80057c3 Typo.
add ea1cba2 Access static methods directly.
add 82f7401 Use final.
add 3c05472 Remove unused import.
add cbdb1e2 No need to nest else clause.
add d68da9b No need to throw UnsupportedEncodingException from this
private method.
add e61abc3 No need to throw IOException from this private method.
add e0b11ec Use try-with-resources.
add e21f1ac Fix Javadoc link.
add 99cc3fb Use Objects.equals().
add 3a69e1c Bump junit from 4.13 to 4.13.1 (#143)
add d8a0142 Bump actions/checkout from v2.3.2 to v2.3.3 (#139)
add 7ceae5d Bump actions/setup-java from v1.4.2 to v1.4.3 (#141)
add 16a7fbb Bump junit from 4.13 to 4.13.1 #143. Bump actions/checkout
from v2.3.2 to v2.3.3 #139. Bump actions/setup-java from v1.4.2 to v1.4.3 #141.
add b08186b Update com.github.luben:zstd-jni from 1.4.5-6 -> 1.4.5-12.
add 176abe1 Replace Java 14 with 15 (latest) on Travis.
add 9e3c2ae Bump memoryfilesystem from 1.3.0 to 2.1.0 #131.
add 16391f3 Bump memoryfilesystem from 1.3.0 to 2.1.0 (#131)
add 648602a Merge branch 'master' of
https://gitbox.apache.org/repos/asf/commons-compress.git
add bf2fbb6 Update Mockito 1.10.19 -> 3.6.0.
add 498db43 Remove dead comments.
add bc754a3 Bump actions/checkout from v2.3.3 to v2.3.4 (#150)
add 4ded585 Bump actions/checkout from v2.3.3 to v2.3.4 #150.
add 6c53849 COMPRESS-509 : document this change in changes.xml
add 4f52e4a COMPRESS-558: Fix accidentally added / to file names
add de1f857 document COMPRESS-558 in changes.xml
add 64f01c6 Use a switch instead of a cascading if-else.
add 4c73313 Use Objects.hash().
add 32012f9 Remove redundant calls to super().
add 5cacb5d No need to initialize to default.
add 993d587 Use final.
add d959766 Use try-with-resource.
add ae5baa9 Remove redundant modifiers like private on enum constructors.
add ef28595 Use blocks.
add 37f193f Use final.
add 50174a9 Use upper-case 'L' instead of 'l' for long literal suffix.
add 0bff34c Redundant return.
add b86feb6 COMPRESS-560: Do not return false if the entry is a tar
sparse entry
add 7d00426 COMPRESS-560: Use assumeTrue/assumeFalse to check if the test
should be run on the current OS
add 291b49d COMPRESS-560: Add message to assume check
add 1258341 document pull request #153
add 05a995e do not use wildcard imports
add 75a16c2 COMPRESS-559: Extract sparsefile-0.1 also on Linux
add d98e849 COMPRESS-559: Skip extracting with GNU tar 1.28
add 4cf5b34 document COMPRESS-559 and make some comments
add 1470c26 Fix spelling.
add d462ac4 COMPRESS-561 - Minor improvement
add ffc5c18 Add final
add 57bcd9b document COMPRESS-561
add 81299d2 add more information about
allowStoredEntriesWithDataDescriptor
add ced31bd Add Java 17-EA to the GitHub build.
add 505feaf Use String#isEmpty().
add b0df98a Breaking binary compatibility should break the build instead
of generating a report one might skip reading, especially for PRs.
add 4944b13 mockito.version 3.6.0 -> 3.6.28 to try to get the build to
pass on Java 16 and 17.
add bec6bd4 Migrate to non-deprecated Mockito class.
add 7fdf1ed Fix compiler warnings.
add d065cff Bump maven-pmd-plugin from 3.13.0 to 3.14.0 (#154)
add 648b6fc Bump maven-pmd-plugin from 3.13.0 to 3.14.0 #154.
add 34ec017 Bump zstd-jni from 1.4.5-12 to 1.4.8-1 #159.
add 770f2c1 Bump zstd-jni from 1.4.5-12 to 1.4.8-1 (#159)
add 8f46229 Merge branch 'master' of
https://gitbox.apache.org/repos/asf/commons-compress.git
add 145a640 No need to initialize instance variable to its default value.
add e723fb3 Bump mockito-core from 3.6.28 to 3.7.0 (#161)
add f405abe Bump mockito-core from 3.6.28 to 3.7.0 #161.
add a9eabd5 Remove unused import.
add 81f2084 COMPRESS-540: Implement TarFile to allow random access to tar
files
add f11c897 COMPRESS-540: Change visibility of methods moved to TarUtils
to protected
add 9f7c5aa COMPRESS-540: Implement storage of data offset in tar entries
via EntryStreamOffsets instead of reinventing it
add 57e2b28 COMPRESS-540: Include fix for COMPRESS-544
add 3b7f0ae COMPRESS-540: Include fix for COMPRESS-554
add 6270ff5 COMPRESS-540: Include fix for COMPRESS-553
add f0aaab6 COMPRESS-540: Fix problems with long filenames
add 543ac95 COMPRESS-540: Javadoc enhancement
add a9a03f6 COMPRESS-540: Implement reading of padded last record
add 53bc2f7 COMPRESS-540: Rename BoundedNIOInputStream ->
BoundedArchiveInputStream
add 20f8b3e COMPRESS-540: Include changes from COMPRESS-559
add 34759ba COMPRESS-540: Remove commented out code in test
add f36fe7e COMPRESS-540: Tar entry offset should not be smaller than 0
add 46b652c document COMPRESS-540
add 0bdc408 Define and reuse constants.
add adab245 Use isEmpty().
add 34bcf90 Use isEmpty().
add 1e6d998 Use isEmpty().
add 67da739 Use isEmpty().
add 6fed9fb Update Mockito 3.7.0 -> 3.7.7.
add 221b2ba use final
add 36a33fe Normalize to US English spelling.
add fdeacdb Normalize to US English spelling.
add 04ed3f1 OMPRESS-565 : add BufferPool support in zstd
add 77db855 document COMPRESS-565 with PR#165
add 1b7528f Remove trailing whitepsace.
add fda4e34 Remove empty loop in X0017_StrongEncryptionHeader
add 627045d Merge pull request #172 from fmeum/patch-1
add bcc009c record #172
add 32509ee COMPRESS-567 use IOException rather than RuntimeExceptions
add 7e5c489 Remove use of redundant String.substring() parameter.
add 65cbce6 Use String.replace() instead of replaceAll() when we don't
need a Regex.
add 06ab954 Bump actions/cache from v2 to v2.1.4 (#164)
add f999414 Bump junit from 4.13.1 to 4.13.2 (#167)
add aef3e6d Bump mockito-core from 3.7.7 to 3.8.0 (#170)
add d8aece0 Bump actions/cache from v2 to v2.1.4 #164 Bump junit from
4.13.1 to 4.13.2 #167 Bump mockito-core from 3.7.7 to 3.8.0 #170
add 80b0628 Bump zstd-jni from 1.4.8-1 to 1.4.8-6 (#173)
add ac2b6e4 Bump zstd-jni from 1.4.8-1 to 1.4.8-6 #173.
add 5feac5f Consolidate updates.
add eb0b2c1 Bump zstd-jni from 1.4.8-6 to 1.4.8-7 (#174)
add 2ff3889 Bump zstd-jni from 1.4.8-6 to 1.4.8-7 #174.
add 768722d No need to nest in else.
add 703d411 Fix Javadoc warnings in builds.
add 6082d64 Fix test leaking file handles.
add 1a52e2f Fix test leaking file handles.
add 46eab6b Use try-with-resources.
add 8543b03 COMPRESS-569 don't move backwards while scanning the archive
add 5c5f8a8 COMPRESS-569 ensure sizes read for archive entries are
non-negative
add 851dbed COMPRESS-569 also check sizes in ZipArchiveInputStream
add 5aa752a COMPRESS-569 add testcase for the specific error in TarFile
add 30a7750 COMPRESS-552 use a more complex and more reliable way to
detect OSGi
add 2841f2d try dealing with Jacoco not working for Java 16+ right now
add e1c1fe9 Revert "try dealing with Jacoco not working for Java 16+
right now"
add d2d1834 actually this looks like a Maven problem with Java 17-ea, not
Jacoco
add 65a5c75 COMPRESS-571 : SevenZFile.getEntries now return a copy of
entries
add f387340 Replace GitHub build for Java 15 with Java 16 and drop Java
16-ea.
add e03b8d4 Bump zstd-jni from 1.4.8-7 to 1.4.9-1
add a669dfb record #176
add af92156 * Use lambda and method reference * Simplify conditions
add 2ea18b8 Merge pull request #178 from arturobernalg/feature/lambda
add 33789f6 * Remove redundant initializer * Remove not use return value
add 40fcdf6 Replace construction of FileInputStream and FileOutputStream
objects with Files NIO APIs.
add 735e99a Change test to use NIO Api's
add 84b8b7a Merge pull request #186 from arturobernalg/feature/filesNioApi
add 63c4e15 Update `actions/setup-java` to v2.
add d4db6e5 Add oss-fuzz to README.md
add 61615b3 COMPRESS-575 harden parser for PAX 0.0 sparse headers
add ef765af COMPRESS-575 extract and harden parsing of GNU stuct_sparse
entries
add ecf514b COMPRESS-575 harden parser of PAX 0.1 GNU sparse map
add c7c1a8b COMPRESS-575 forgot tests for parseSparseStructs
add 2887391 COMPRESS-575 harden parser for PAX 1.0 sparse struct blocks
add f196253 COMPRESS-575 extract and harden sorting of sparse structs
add ad40318 whitespace changes only
add 8645883 COMPRESS-575 confine sparse entry to its claimed realSize
add 30ff58d COMPRESS-567 overlooked a RuntimeException in
BoundedArchiveInputStream
add deabd92 COMPRESS-575 document changes
add 9631715 AsiExtraField actually expects quite a few more bytes than it
claims
add 51265b2 JDK's ZipEntry#setExtra parses a few extra fields itself ...
add cf4608b more stongly guard what is supposed to become an array size
add 004e873 COMPRESS-567 parsing tar headers actually throws
IllegalArgumentException
add 02dbe7b only update name, wnen present in PAX header, deal with
non-numbers in header
add 5672064 update XZ for Java to get access to improved performance
add 26924e9 COMPRESS-542 sanity check 7z metadata with minimizing
allocations
add 882c6dd one more case where the JDK throwing RuntimeEx may hurt us
add 190939b handle integer overflow
add 8046bd2 properly fulfill InputStream's contract
add de39b85 COMPRESS-567 turn possible RuntimeExceptions into IOExceptions
add ed32eb9 actually, InputStream wants an IIOBE here
add 2d1392d fix single-byte read when nothing has been read
add 8a825f0 really fix single-byte read when nothing has been read
add 8bae05c COMPRESS-542 clear temporary storage after it is no longer
needed
add c51de6c COMPRESS-542 add some extra sanity checks
add 0aba8b8 COMPRESS-542 and some final sanity checks
add 23b758f COMPRESS-552 check interfaces of superclasses as well
add 60d551a COMPRESS-542 guard against integer overflow
add bf5a534 COMPRESS-542 hit commit to quickly
add 5761493 COMPRESS-542 each folder requires at least one coder
add 8542c81 Add GitHub code of conduct page that points to the Apache
page.
add d15c285 COMPRESS-567 more uncaught runtime exceptions
add f4b5586 COMPRESS-565 : add a new option in Zip64Mode
add b5a9e88 document #169 and COMPRESS-565
add 03fba28 fix build failure
add 24788a9 looks as if we may forget flipping the buffer for sparse
entries
add 9bc02b2 simplify BoundedArchiveIS#read, add upper bounds check for
offset
add 06f1169 Fix typo
add 0f8a69c Grammar glitch
add e893413 COMPRESS-577 - Simplify assertion
add e404cbc Merge pull request #193 from
arturobernalg/feature/COMPRESS-577
add 8dbf582 COMPRESS-579 - Remove redundant local variable
add 8fc60bf Merge pull request #195 from
arturobernalg/feature/COMPRESS-579
add ce1c3f0 COMPRESS-580 - Remove redundant operation
add 93aab64 Merge pull request #196 from
arturobernalg/feature/COMPRESS-580
add f8a4a3e simplify readEncodedHeader a bit
add a3b3b82 add back assertion that has been removed
add 6a72242 tiny performance improvement
add 1dde1a3 extra guard against illegal sparse struct values
add 7072023 COMPRESS-578 - Java 8 improvements
add 8225539 Merge pull request #194 from
arturobernalg/feature/COMPRESS-578
add 8289193 handle cases where more data attempted to be read than exists
add b05ed49 COMPRESS-567 and even more 7z sanity checks
add b1cbfdd COMPRESS-567 more structured way to deal with buffer undeflow
add 8797ec4 COMPRESS-566 allow gzip buffer size to be configured
add 309681f COMPRESS-566 allow gzip buffer size to be configured
add 7928482 Merge pull request #168 from bokken/COMPRESS-566_buf_size
add 6efdc66 record COMPRESS-566
add f1218e2 minor cleanup of unused variables
add c5b60ca avoid NPE when there is no GNU tar extended header where one
should be
add e0d4555 add TarFile special case to Lister and Expander
add 9450bcc properly document difference between tar getSize and
getRealSize ...
add ae2b27c COMPRESS-542 make memory limit configuration apply to 7z
metadata as well
new c754db3 Merge from develop and resolve conflicts in pom.xml.
add e1e5635 Bump actions/cache from 2.1.4 to 2.1.6 (#200)
add 017317f Bump actions/cache from 2.1.4 to 2.1.6 #200.
add 80a494c Bump commons.jacoco.version 0.8.5 -> 0.8.7, to build on Java
16.
add 3af47ee simplify comparator
add 4eea958 ZipFile could use some sanity checks as well
add 9ddce50 Merge branch 'master' of
https://gitbox.apache.org/repos/asf/commons-compress.git
add 0e9d6b0 Bump maven-bundle-plugin from 5.1.1 to 5.1.2 (#180)
add 8327310 Bump maven-bundle-plugin from 5.1.1 to 5.1.2 #180
add eb076ba Bump mockito-core from 3.8.0 to 3.11.1 (#204)
add c8e4459 Bump mockito-core from 3.8.0 to 3.11.1 #204.
add 3343cb3 Bump org.apache.felix:org.apache.felix.framework 6.0.3 ->
6.0.4.
add f95bcc4 Bump org.apache.felix:org.apache.felix.framework from 6.0.4
to 7.0.0.
add 4881382 Bump commons.japicmp.version from 0.14.3 to 0.15.3 (Java 16
builds).
add 00bc638 Bump zstd-jni from 1.4.9-1 to 1.5.0-2 (#203)
add 6efc056 Bump zstd-jni from 1.4.9-1 to 1.5.0-2 #203.
new a3a7883 Merge remote-tracking branch 'origin/master' into pack200
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/maven.yml | 15 +-
.gitignore | 14 +-
.travis.yml | 8 +-
src/assembly/src.xml => CODE_OF_CONDUCT.md | 27 +-
README.md | 1 +
src/assembly/src.xml => SECURITY.md | 27 +-
pom.xml | 58 +-
src/changes/changes.xml | 208 +++++-
.../compress/archivers/ArchiveInputStream.java | 2 +-
.../compress/archivers/ArchiveOutputStream.java | 2 +-
.../compress/archivers/ArchiveStreamFactory.java | 16 +-
.../apache/commons/compress/archivers/Lister.java | 16 +-
.../compress/archivers/ar/ArArchiveEntry.java | 9 +-
.../archivers/ar/ArArchiveInputStream.java | 12 +-
.../archivers/ar/ArArchiveOutputStream.java | 24 +-
.../compress/archivers/arj/ArjArchiveEntry.java | 8 +-
.../archivers/arj/ArjArchiveInputStream.java | 8 +-
.../compress/archivers/arj/LocalFileHeader.java | 2 +-
.../commons/compress/archivers/arj/MainHeader.java | 2 +-
.../compress/archivers/cpio/CpioArchiveEntry.java | 32 +-
.../archivers/cpio/CpioArchiveInputStream.java | 15 +-
.../archivers/cpio/CpioArchiveOutputStream.java | 9 +-
.../commons/compress/archivers/cpio/CpioUtil.java | 4 +-
.../archivers/dump/DumpArchiveConstants.java | 4 +-
.../compress/archivers/dump/DumpArchiveEntry.java | 7 +-
.../archivers/dump/DumpArchiveInputStream.java | 18 +-
.../archivers/dump/DumpArchiveSummary.java | 6 +-
.../compress/archivers/dump/TapeInputStream.java | 4 +-
.../compress/archivers/examples/Archiver.java | 5 +-
.../compress/archivers/examples/Expander.java | 35 +-
.../archivers/jar/JarArchiveOutputStream.java | 2 +-
.../archivers/sevenz/AES256SHA256Decoder.java | 4 +-
.../commons/compress/archivers/sevenz/Archive.java | 4 +-
.../BoundedSeekableByteChannelInputStream.java | 4 +-
.../commons/compress/archivers/sevenz/CLI.java | 2 +-
.../commons/compress/archivers/sevenz/Coder.java | 2 +-
.../compress/archivers/sevenz/CoderBase.java | 6 +-
.../commons/compress/archivers/sevenz/Coders.java | 4 +-
.../commons/compress/archivers/sevenz/Folder.java | 23 +-
.../archivers/sevenz/SevenZArchiveEntry.java | 6 +-
.../compress/archivers/sevenz/SevenZFile.java | 706 +++++++++++++++++--
.../archivers/sevenz/SevenZFileOptions.java | 17 +-
.../compress/archivers/sevenz/SevenZMethod.java | 5 +-
.../archivers/sevenz/SevenZOutputFile.java | 6 +-
.../compress/archivers/tar/TarArchiveEntry.java | 219 ++++--
.../archivers/tar/TarArchiveInputStream.java | 323 ++-------
.../archivers/tar/TarArchiveOutputStream.java | 22 +-
.../archivers/tar/TarArchiveSparseEntry.java | 16 +-
.../tar/TarArchiveSparseZeroInputStream.java} | 31 +-
.../archivers/tar/TarArchiveStructSparse.java | 6 +
.../commons/compress/archivers/tar/TarFile.java | 750 +++++++++++++++++++++
.../commons/compress/archivers/tar/TarUtils.java | 318 ++++++++-
.../compress/archivers/zip/AsiExtraField.java | 28 +-
.../commons/compress/archivers/zip/BinaryTree.java | 16 +-
.../archivers/zip/ExplodingInputStream.java | 9 +-
.../compress/archivers/zip/ExtraFieldUtils.java | 34 +-
.../compress/archivers/zip/GeneralPurposeBit.java | 8 +-
.../zip/InflaterInputStreamWithStatistics.java | 4 +-
.../commons/compress/archivers/zip/JarMarker.java | 7 +-
.../compress/archivers/zip/NioZipEncoding.java | 16 +-
.../archivers/zip/ParallelScatterZipCreator.java | 33 +-
.../archivers/zip/ResourceAlignmentExtraField.java | 2 +-
.../archivers/zip/ScatterZipOutputStream.java | 2 +-
.../compress/archivers/zip/StreamCompressor.java | 6 +-
.../archivers/zip/UnshrinkingInputStream.java | 36 +-
.../zip/X0017_StrongEncryptionHeader.java | 10 +-
.../compress/archivers/zip/X7875_NewUnix.java | 9 +-
.../zip/Zip64ExtendedInformationExtraField.java | 6 +-
.../commons/compress/archivers/zip/Zip64Mode.java | 12 +-
.../compress/archivers/zip/ZipArchiveEntry.java | 42 +-
.../archivers/zip/ZipArchiveInputStream.java | 108 ++-
.../archivers/zip/ZipArchiveOutputStream.java | 98 ++-
.../commons/compress/archivers/zip/ZipFile.java | 225 +++----
.../commons/compress/archivers/zip/ZipMethod.java | 2 +-
.../archivers/zip/ZipSplitOutputStream.java | 16 +-
.../zip/ZipSplitReadOnlySeekableByteChannel.java | 9 +-
.../commons/compress/archivers/zip/ZipUtil.java | 7 +-
.../apache/commons/compress/changes/ChangeSet.java | 1 -
.../compressors/CompressorInputStream.java | 2 +-
.../compressors/CompressorStreamFactory.java | 2 +-
.../compress/compressors/brotli/BrotliUtils.java | 10 +-
.../bzip2/BZip2CompressorInputStream.java | 48 +-
.../bzip2/BZip2CompressorOutputStream.java | 24 +-
.../compress/compressors/bzip2/BlockSort.java | 92 ++-
.../commons/compress/compressors/bzip2/CRC.java | 4 +-
.../compressors/deflate64/HuffmanDecoder.java | 42 +-
.../gzip/GzipCompressorInputStream.java | 4 +-
.../gzip/GzipCompressorOutputStream.java | 7 +-
.../compress/compressors/gzip/GzipParameters.java | 26 +
.../lz4/BlockLZ4CompressorOutputStream.java | 15 +-
.../lz4/FramedLZ4CompressorOutputStream.java | 17 +-
.../AbstractLZ77CompressorInputStream.java | 2 +-
.../compressors/lz77support/LZ77Compressor.java | 10 +-
.../compress/compressors/lzma/LZMAUtils.java | 7 +-
.../pack200/Pack200CompressorOutputStream.java | 2 +-
.../compress/compressors/pack200/Pack200Utils.java | 9 +-
.../snappy/FramedSnappyCompressorInputStream.java | 3 +-
.../snappy/FramedSnappyCompressorOutputStream.java | 2 +-
.../snappy/SnappyCompressorInputStream.java | 4 +-
.../snappy/SnappyCompressorOutputStream.java | 2 +-
.../commons/compress/compressors/xz/XZUtils.java | 7 +-
.../compressors/z/ZCompressorInputStream.java | 22 +-
.../zstandard/ZstdCompressorInputStream.java | 17 +
.../compress/compressors/zstandard/ZstdUtils.java | 10 +-
.../commons/compress/utils/ArchiveUtils.java | 2 +-
.../commons/compress/utils/BitInputStream.java | 8 +-
.../compress/utils/BoundedArchiveInputStream.java | 97 +++
.../BoundedSeekableByteChannelInputStream.java | 57 ++
.../apache/commons/compress/utils/ByteUtils.java | 8 +
.../compress/utils/CountingOutputStream.java | 2 +-
.../utils/FixedLengthBlockOutputStream.java | 2 +-
.../org/apache/commons/compress/utils/IOUtils.java | 7 +-
.../utils/MultiReadOnlySeekableByteChannel.java | 2 +-
.../apache/commons/compress/utils/OsgiUtils.java | 58 ++
.../utils/SeekableInMemoryByteChannel.java | 6 +-
.../compress/utils/ServiceLoaderIterator.java | 14 +-
src/site/xdoc/examples.xml | 2 +-
.../apache/commons/compress/AbstractTestCase.java | 22 +-
.../apache/commons/compress/ArchiveReadTest.java | 18 +-
.../apache/commons/compress/ArchiveUtilsTest.java | 10 +-
.../apache/commons/compress/ChainingTestCase.java | 27 +-
.../commons/compress/DetectArchiverTestCase.java | 64 +-
.../org/apache/commons/compress/IOMethodsTest.java | 12 +-
.../org/apache/commons/compress/OsgiITest.java | 32 +-
.../commons/compress/archivers/ArTestCase.java | 71 +-
.../archivers/ArchiveOutputStreamTest.java | 10 +-
.../archivers/ArchiveStreamFactoryTest.java | 33 +-
.../commons/compress/archivers/CpioTestCase.java | 49 +-
.../commons/compress/archivers/DumpTestCase.java | 13 +-
.../compress/archivers/ExceptionMessageTest.java | 4 +-
.../commons/compress/archivers/JarTestCase.java | 21 +-
.../commons/compress/archivers/LongPathTest.java | 17 +-
.../compress/archivers/LongSymLinkTest.java | 17 +-
.../commons/compress/archivers/SevenZTestCase.java | 13 +-
.../commons/compress/archivers/TarTestCase.java | 328 +++++++--
.../commons/compress/archivers/ZipTestCase.java | 57 +-
.../archivers/ar/ArArchiveInputStreamTest.java | 29 +-
.../archivers/ar/ArArchiveOutputStreamTest.java | 10 +-
.../archivers/arj/ArjArchiveInputStreamTest.java | 16 +-
.../archivers/cpio/CpioArchiveInputStreamTest.java | 16 +-
.../cpio/CpioArchiveOutputStreamTest.java | 13 +-
.../compress/archivers/cpio/CpioArchiveTest.java | 6 +-
.../archivers/dump/DumpArchiveInputStreamTest.java | 15 +-
.../compress/archivers/examples/ExpanderTest.java | 36 +-
.../archivers/jar/JarArchiveOutputStreamTest.java | 8 +-
.../archivers/memory/MemoryArchiveInputStream.java | 7 +-
.../archivers/memory/MemoryArchiveTestCase.java | 4 +-
.../archivers/sevenz/AES256SHA256DecoderTest.java | 3 +-
.../compress/archivers/sevenz/SevenZFileTest.java | 31 +-
.../archivers/sevenz/SevenZNativeHeapTest.java | 7 +-
.../archivers/sevenz/SevenZOutputFileTest.java | 14 +-
.../commons/compress/archivers/tar/BigFilesIT.java | 82 +--
.../compress/archivers/tar/SparseFilesTest.java | 361 ++++++++--
.../archivers/tar/TarArchiveEntryTest.java | 81 ++-
.../archivers/tar/TarArchiveInputStreamTest.java | 170 +++--
.../archivers/tar/TarArchiveOutputStreamTest.java | 15 +-
.../compress/archivers/tar/TarFileTest.java | 365 ++++++++++
.../commons/compress/archivers/tar/TarLister.java | 10 +-
.../archivers/tar/TarMemoryFileSystemTest.java | 14 +-
.../compress/archivers/tar/TarUtilsTest.java | 418 +++++++++++-
.../compress/archivers/zip/AsiExtraFieldTest.java | 14 +-
.../compress/archivers/zip/BinaryTreeTest.java | 4 +-
.../compress/archivers/zip/BitStreamTest.java | 7 +-
.../compress/archivers/zip/CircularBufferTest.java | 4 +-
.../compress/archivers/zip/DataDescriptorTest.java | 13 +-
.../archivers/zip/EncryptedArchiveTest.java | 16 +-
.../compress/archivers/zip/ExplodeSupportTest.java | 8 +-
.../archivers/zip/ExtraFieldUtilsTest.java | 4 +-
.../archivers/zip/GeneralPurposeBitTest.java | 18 +-
.../commons/compress/archivers/zip/Lister.java | 21 +-
.../archivers/zip/Maven221MultiVolumeTest.java | 31 +-
.../zip/ParallelScatterZipCreatorTest.java | 134 +---
.../compress/archivers/zip/ScatterSample.java | 4 +-
.../compress/archivers/zip/ScatterSampleTest.java | 9 +-
.../archivers/zip/ScatterZipOutputStreamTest.java | 8 +-
.../compress/archivers/zip/UTF8ZipFilesTest.java | 41 +-
.../compress/archivers/zip/X000A_NTFSTest.java | 7 +-
.../archivers/zip/X5455_ExtendedTimestampTest.java | 58 +-
.../compress/archivers/zip/X7875_NewUnixTest.java | 55 +-
.../Zip64ExtendedInformationExtraFieldTest.java | 5 +-
.../compress/archivers/zip/Zip64SupportIT.java | 82 ++-
.../archivers/zip/ZipArchiveEntryTest.java | 26 +-
.../archivers/zip/ZipArchiveInputStreamTest.java | 144 ++--
.../archivers/zip/ZipEightByteIntegerTest.java | 19 +-
.../zip/ZipFileIgnoringLocalFileHeaderTest.java | 4 +-
.../compress/archivers/zip/ZipFileTest.java | 137 +++-
.../compress/archivers/zip/ZipLongTest.java | 20 +-
.../compress/archivers/zip/ZipShortTest.java | 16 +-
.../archivers/zip/ZipSplitOutputStreamTest.java | 8 +-
.../compress/archivers/zip/ZipUtilTest.java | 10 +-
.../compress/changes/ChangeSetTestCase.java | 162 +++--
.../compress/compressors/BZip2TestCase.java | 24 +-
.../compress/compressors/BZip2UtilsTestCase.java | 4 +-
.../compress/compressors/DeflateTestCase.java | 40 +-
.../compressors/DetectCompressorTestCase.java | 22 +-
.../compress/compressors/FramedSnappyTestCase.java | 68 +-
.../commons/compress/compressors/GZipTestCase.java | 76 ++-
.../compress/compressors/GzipUtilsTestCase.java | 4 +-
.../commons/compress/compressors/LZMATestCase.java | 28 +-
.../compress/compressors/Pack200TestCase.java | 27 +-
.../commons/compress/compressors/XZTestCase.java | 26 +-
.../commons/compress/compressors/ZTestCase.java | 46 +-
.../brotli/BrotliCompressorInputStreamTest.java | 31 +-
.../bzip2/BZip2CompressorInputStreamTest.java | 9 +-
.../bzip2/BZip2NSelectorsOverflowTest.java | 4 +-
.../bzip2/PythonTruncatedBzip2Test.java | 2 +-
.../deflate/DeflateCompressorInputStreamTest.java | 12 +-
.../Deflate64CompressorInputStreamTest.java | 58 +-
.../lz4/BlockLZ4CompressorInputStreamTest.java | 11 +-
.../lz4/BlockLZ4CompressorRoundtripTest.java | 19 +-
.../compress/compressors/lz4/FactoryTest.java | 11 +-
.../lz4/FramedLZ4CompressorInputStreamTest.java | 97 +--
.../lz4/FramedLZ4CompressorRoundtripTest.java | 41 +-
.../compress/compressors/lz4/XXHash32Test.java | 5 +-
.../AbstractLZ77CompressorInputStreamTest.java | 5 +-
.../lz77support/LZ77CompressorTest.java | 138 ++--
.../compressors/lzma/LZMAUtilsTestCase.java | 4 +-
.../compressors/pack200/Pack200UtilsTest.java | 16 +-
.../FramedSnappyCompressorInputStreamTest.java | 56 +-
.../compressors/snappy/SnappyRoundtripTest.java | 18 +-
.../xz/XZCompressorInputStreamTest.java | 7 +-
.../compress/compressors/xz/XZUtilsTestCase.java | 4 +-
.../compressors/z/ZCompressorInputStreamTest.java | 8 +-
.../zstandard/ZstdCompressorInputStreamTest.java | 65 +-
.../compressors/zstandard/ZstdRoundtripTest.java | 47 +-
.../commons/compress/utils/BitInputStreamTest.java | 8 +-
...BoundedSeekableByteChannelInputStreamTest.java} | 32 +-
.../commons/compress/utils/ByteUtilsTest.java | 31 +-
.../commons/compress/utils/CharsetsTest.java | 4 +-
.../utils/ChecksumCalculatingInputStreamTest.java | 8 +-
.../utils/FixedLengthBlockOutputStreamTest.java | 32 +-
.../apache/commons/compress/utils/IOUtilsTest.java | 53 +-
.../MultiReadOnlySeekableByteChannelTest.java | 12 +-
.../{CharsetsTest.java => OsgiUtilsTest.java} | 21 +-
.../utils/SeekableInMemoryByteChannelTest.java | 8 +-
.../ZipSplitReadOnlySeekableByteChannelTest.java | 4 +-
src/test/resources/COMPRESS-548.zip | Bin 0 -> 79 bytes
src/test/resources/{bla.cpio => COMPRESS-553.tar} | Bin 5120 -> 7168 bytes
.../{COMPRESS-114.tar => COMPRESS-554.tar} | Bin 10240 -> 10842 bytes
src/test/resources/COMPRESS-569.tar | Bin 0 -> 513 bytes
.../resources/{COMPRESS-529.tar => directory.tar} | Bin 1536 -> 1536 bytes
241 files changed, 6360 insertions(+), 2999 deletions(-)
copy src/assembly/src.xml => CODE_OF_CONDUCT.md (50%)
copy src/assembly/src.xml => SECURITY.md (50%)
copy src/main/java/org/apache/commons/compress/{PasswordRequiredException.java
=> archivers/tar/TarArchiveSparseZeroInputStream.java} (60%)
create mode 100644
src/main/java/org/apache/commons/compress/archivers/tar/TarFile.java
create mode 100644
src/main/java/org/apache/commons/compress/utils/BoundedArchiveInputStream.java
create mode 100644
src/main/java/org/apache/commons/compress/utils/BoundedSeekableByteChannelInputStream.java
create mode 100644
src/main/java/org/apache/commons/compress/utils/OsgiUtils.java
create mode 100644
src/test/java/org/apache/commons/compress/archivers/tar/TarFileTest.java
copy
src/test/java/org/apache/commons/compress/{archivers/zip/X000A_NTFSTest.java =>
utils/BoundedSeekableByteChannelInputStreamTest.java} (55%)
copy src/test/java/org/apache/commons/compress/utils/{CharsetsTest.java =>
OsgiUtilsTest.java} (55%)
create mode 100644 src/test/resources/COMPRESS-548.zip
copy src/test/resources/{bla.cpio => COMPRESS-553.tar} (63%)
copy src/test/resources/{COMPRESS-114.tar => COMPRESS-554.tar} (54%)
create mode 100644 src/test/resources/COMPRESS-569.tar
copy src/test/resources/{COMPRESS-529.tar => directory.tar} (58%)