gnu-arch-users
[Top][All Lists]
Advanced

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

[Gnu-arch-users] corrupted binary files


From: Brian May
Subject: [Gnu-arch-users] corrupted binary files
Date: Fri, 02 Apr 2004 12:32:52 +1000
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Hello,

It would appear that TLA/arch is corrupting my binary PNG files.

As an example, comparing good with bad (output from hexdump -C).

--- a.h 2004-04-02 12:13:22.000000000 +1000
+++ b.h 2004-04-02 12:13:26.000000000 +1000
@@ -843,8 +843,5 @@
 000034a0  03 7f 66 24 9a 11 01 00  b8 9c 92 5c 0e cc 68 40  |..f$.......\..h@|
 000034b0  4a 00 01 34 ba 09 7d 14  8c 82 c1 91 c1 19 a8 99  |J..4..}.........|
 000034c0  c1 47 c1 28 18 05 a3 60  14 8c 82 51 30 0a e8 dc  |.G.(...`...Q0...|
-000034d0  5e 21 1a 00 04 60 bf 8e  69 00 00 00 10 00 cd fe  |^!...`..i.......|
-000034e0  a5 bd 8c e0 07 2d c8 26  02 00 00 f0 56 01 06 00  |.....-.&....V...|
-000034f0  c7 46 a5 7f 01 28 8d 29  00 00 00 00 49 45 4e 44  |.F...(.)....IEND|
-00003500  ae 42 60 82                                       |.B`.|
-00003504
+000034d0  5e 21 1a                                          |^!.|
+000034d3

It would appear that the file is getting truncated at the "1a"
byte. Why? IIRC, 1A was once meant EOF on for historic reasons on
MS-DOS, but this is Unix!

This corruption starts from when the file is first added to the
archive, and exists in the resultant changeset.

Another example of corruption seems to terminate at 80 (hex). My guess
is the MSB was stripped, and this is the same case as 00 (below).

--- a.h 2004-04-02 12:24:05.000000000 +1000
+++ b.h 2004-04-02 12:24:10.000000000 +1000
@@ -594,30 +594,5 @@
 00002510  05 23 b1 43 c2 40 a2 dc  28 18 05 a3 60 14 8c 82  
|address@hidden(...`...|
 00002520  51 30 0a 46 c1 90 04 00  01 c4 32 00 76 fe a7 91  |Q0.F......2.v...|
 00002530  da 51 30 0a 86 4b a7 64  14 8c 82 51 30 0a 46 c1  |.Q0..K.d...Q0.F.|
-00002540  28 18 05 a3 60 d8 02 80  00 ec d6 31 0d 00 00 00  |(...`......1....|
-00002550  02 a0 d9 3f b4 b6 f0 82  14 a4 f5 1f 00 00 e0 63  |...?...........c|
-00002560  02 b0 43 c7 34 00 00 00  0c 83 92 f9 17 5d 17 bb  |..C.4........]..|
-00002570  40 02 53 00 00 00 bc 24  80 00 ec d7 b1 00 00 00  |@.S....$........|
-00002580  00 c0 20 7f eb 59 ec 2a  8b 04 04 00 00 d8 24 80  |.. ..Y.*......$.|
-00002590  00 ec d7 b1 00 00 00 00  c0 20 7f eb 59 ec 2a 8b  |......... ..Y.*.|
-000025a0  04 04 00 00 d8 24 80 00  ec d7 b1 00 00 00 00 c0  |.....$..........|
-000025b0  20 7f eb 59 ec 2a 8b 04  04 00 00 d8 24 80 00 ec  | ..Y.*......$...|
-000025c0  d7 b1 00 00 00 00 c0 20  7f eb 59 ec 2a 8b 04 04  |....... ..Y.*...|
-000025d0  00 00 d8 24 80 00 ec d7  b1 00 00 00 00 c0 20 7f  |...$.......... .|
-000025e0  eb 59 ec 2a 8b 04 04 00  00 d8 24 80 00 ec d7 b1  |.Y.*......$.....| 
-000025f0  00 00 00 00 c0 20 7f eb  59 ec 2a 8b 04 04 00 00  |..... ..Y.*.....| 
-00002600  d8 24 80 00 ec d7 b1 00  00 00 00 c0 20 7f eb 59  |.$.......... ..Y|
-00002610  ec 2a 8b 04 04 00 00 d8  24 80 00 ec d7 b1 00 00  |.*......$.......|
-00002620  00 00 c0 20 7f eb 59 ec  2a 8b 04 04 00 00 d8 24  |... ..Y.*......$|
-00002630  80 00 ec d7 b1 00 00 00  00 c0 20 7f eb 59 ec 2a  |.......... ..Y.*| 
-00002640  8b 04 04 00 00 d8 24 80  00 ec d7 b1 00 00 00 00  |......$.........|
-00002650  c0 20 7f eb 59 ec 2a 8b  04 04 00 00 d8 24 80 00  |. ..Y.*......$..|
-00002660  ec d7 b1 00 00 00 00 c0  20 7f eb 59 ec 2a 8b 04  |........ ..Y.*..|
-00002670  04 00 00 d8 24 80 00 ec  d7 b1 00 00 00 00 c0 20  |....$.......... |
-00002680  7f eb 59 ec 2a 8b 04 04  00 00 d8 24 80 00 ec d7  |..Y.*......$....|
-00002690  b1 00 00 00 00 c0 20 7f  eb 59 ec 2a 8b 04 04 00  |...... ..Y.*....|
-000026a0  00 d8 24 80 00 ec d7 b1  00 00 00 00 c0 20 7f eb  |..$.......... ..|
-000026b0  59 ec 2a 8b 04 04 00 00  d8 24 80 00 03 00 fd 7c  |Y.*......$.....||
-000026c0  fc e7 7a 5c b5 aa 00 00  00 00 49 45 4e 44 ae 42  |..z\......IEND.B|
-000026d0  60 82                                             |`.|
-000026d2
+00002540  28 18 05 a3 60 d8 02 80                           |(...`...|
+00002548

Or 00:

--- a.h 2004-04-02 12:26:20.000000000 +1000
+++ b.h 2004-04-02 12:26:35.000000000 +1000
@@ -155,9 +155,5 @@
 000009a0  3f a0 e2 7f 18 90 46 9c  00 02 08 db 24 3a 7a cd  |?.....F.....$:z.|
 000009b0  c4 0c ad 68 40 15 06 3b  03 62 37 3a 7a 05 32 5a  
|address@hidden;.b7:z.2Z|
 000009c0  89 8c 82 51 30 0a 46 c1  d0 ac 38 fe 23 55 20 bf  |...Q0.F...8.#U .|
-000009d0  a1 15 c8 2f 24 1a a5 e7  01 03 00 01 44 a8 02 61  |.../$.......D..a|
-000009e0  40 aa 1c 60 07 29 b2 22  b1 47 87 b0 46 c1 28 18  |@..`.).".G..F.(.|
-000009f0  05 a3 60 f8 54 24 c8 c7  95 c0 76 9d ff 63 c0 b1  |..`.T$....v..c..|
-00000a00  d2 16 20 c0 00 4a 65 0b  77 52 5c 71 86 00 00 00  |.. ..Je.wR\q....|
-00000a10  00 49 45 4e 44 ae 42 60  82                       |.IEND.B`.|
-00000a19
+000009d0  a1 15 c8 2f 24 1a a5 e7  01 03                    |.../$.....|
+000009da

If any further information and/or examples are required, please let me
know.

These binary files were imported using cscvs (not sure if that makes
any difference...).
-- 
Brian May <address@hidden>




reply via email to

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