#862998 coreutils: cpio -H crc verification fails with checksum error / checksum exceeds 32 bit

Package:
cpio
Source:
cpio
Description:
GNU cpio -- a program to manage archives of files
Submitter:
Andreas Fenkart
Date:
2025-08-11 18:25:01 UTC
Severity:
normal
Tags:
#862998#5
Date:
2017-05-19 20:39:56 UTC
From:
To:
dd if=/dev/urandom of=bitbag count=33 bs=$((1024*1024))
echo bitbag | cpio -o -H crc  > test.cpio
$(cd tmpdir; cpio -i < ../test.cpio)
cpio: bitbag: checksum error (0x106ed91f7, should be 0x6ed91f7)

The checksums are similar, but the left checksum has a leading '1', hence
exceeds a 32bit value

the bug has a fix upstream, but is not yet included in 2.11
http://lists.gnu.org/archive/html/bug-cpio/2012-02/msg00004.html
http://lists.gnu.org/archive/html/bug-cpio/2005-10/msg00013.html

#862998#16
Date:
2025-08-11 18:23:30 UTC
From:
To:
This was fixed by upstream in version 2.12.