[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cpio-2.4.2: data corruption bug
From: |
Todd Kelley |
Subject: |
cpio-2.4.2: data corruption bug |
Date: |
Fri, 09 Feb 2001 17:00:06 -0500 |
Hello,
Recently at OEone we fixed a bug in GNU cpio-2.4.2:
When a file over about 0.5 megabyes grows while it is being archived,
it and all files following it in the archive are corrupted. The crc
doesn't necessarily detect the corruption (another bug, the crc is not
really a crc!).
Here is our fix for the GNU cpio-2.4.2 data corruption bug:
bash$ diff old_util.c util.c
488a489,491
> /* discard any growth of previous file that occurred
during its processing */
> input_size = 0;
>
--
Todd Kelley, System Architect, OEone Corporation
103 - 290 St-Joseph Blvd, Hull, QB J8Y 3Y3
Phone: (819) 770-3444 x516; Fax: (819) 770-3448
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- cpio-2.4.2: data corruption bug,
Todd Kelley <=