You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2026/01/23 11:17:00 UTC

[jira] [Resolved] (COMPRESS-711) Incorrect CPIO checksum verification

     [ https://issues.apache.org/jira/browse/COMPRESS-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved COMPRESS-711.
--------------------------------------
    Fix Version/s: 1.29.0
       Resolution: Fixed

PR merged on 2026-10-10.

> 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
>            Assignee: Piotr Karwasz
>            Priority: Minor
>             Fix For: 1.29.0
>
>
> {{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)