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

Piotr Karwasz updated COMPRESS-711:
-----------------------------------
    Assignee: Piotr Karwasz

> 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
>
> {{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)

Reply via email to