Piotr Karwasz created COMPRESS-711:
--------------------------------------
Summary: Incorrect CPIO checksum verification
Key: COMPRESS-711
URL: https://issues.apache.org/jira/browse/COMPRESS-711
Project: Commons Compress
Issue Type: Bug
Reporter: Piotr Karwasz
{{CpioArchiveInputStream}} computes the CRC checksum on the wrong data if
{{read()}} is invoked with a non-zero offset. This leads to incorrect checksum
verification and causes archives to fail validation.
*Steps to Reproduce*:
* Read a {{crc}} archive (magic {{070702}}) using
{{CpioArchiveInputStream.read(byte[] b, int off, int len)}} with {{off > 0}}.
* At the end of the entry an exception will be thrown.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)