bug-cpio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] Bug in 2.11 with ascii crc format


From: Brad Campbell
Subject: [Bug-cpio] Bug in 2.11 with ascii crc format
Date: Fri, 09 Nov 2012 13:03:14 +0800
User-agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:15.0) Gecko/20120827 Thunderbird/15.0

G'day all,

I think I've found a thinko in cpio.

I'm getting crc verify errors on my archives. I suspect it's due to :

global.c:unsigned long crc;

I'm on a 64bit machine, and the crc field in the header is only 32 bits. If you look at the calculated crc vs the "should be" there is more than 32 bits there.

find | cpio -o -H crc | cpio -i --only-verify-crc
cpio: src/current.git/.git/objects/pack/pack-daee2e40ca7da47ea56b59632b67a72b112bb2d3.pack: checksum error (0xc8d371a95, should be 0x8d371a95) cpio: src/current.git/.git/objects/pack/pack-7eebfd4fe419b081cb3d4ac3f08c328f4ae6e871.pack: checksum error (0x138bb983d, should be 0x38bb983d) cpio: src/current.git/.git/objects/pack/pack-546476411c0ba37e6e0c601d414f1b21bdaa61df.pack: checksum error (0x1c746f617, should be 0xc746f617) cpio: src/current.git/.git/objects/pack/pack-8b9aae69d02c83f0d88f9a97e89e5d2f0b275392.pack: checksum error (0x10a3630e7, should be 0xa3630e7)

I'd send a patch, but I'm not that clever. Not subscribed to the list either.

Regards,
Brad



reply via email to

[Prev in Thread] Current Thread [Next in Thread]