Skip to content

Commit

Permalink
use "()" rather then "[]" for decimal values
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Jul 20, 2023
1 parent 3c66d90 commit 5b03944
Show file tree
Hide file tree
Showing 433 changed files with 102,835 additions and 102,835 deletions.
6 changes: 3 additions & 3 deletions bin/zipdetails
Original file line number Diff line number Diff line change
Expand Up @@ -590,12 +590,12 @@ sub outHexdump

sub decimalHex
{
sprintf("%0*X [%u]", $_[1] // 0, $_[0], $_[0])
sprintf("%0*X (%u)", $_[1] // 0, $_[0], $_[0])
}

sub decimalHex0x
{
sprintf("0x%0*X [%u]", $_[1] // 0, $_[0], $_[0])
sprintf("0x%0*X (%u)", $_[1] // 0, $_[0], $_[0])
}

sub out
Expand Down Expand Up @@ -6986,7 +6986,7 @@ type of data:
=item * Numeric Values
If the field contains an 8-bit, 16-bit, 32-bit or 64-bit numeric value, it will
be displayed in both hex and decimal -- for example "C<002A [42]>".
be displayed in both hex and decimal -- for example "C<002A (42)>".
Note that Zip files store most numeric values in I<little-endian> encoding.
(there area few rare instances where I<big-endian> is used). The value read from
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#
# FATAL: Offset 0x1: Unexpected Zip Signature '2D04034B [755237707]' at offset 0x1 [1]
# FATAL: Offset 0x1: Unexpected Zip Signature '2D04034B (755237707)' at offset 0x1 (1)
#
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ERROR: Offset 0x184: 'Offset to Local Dir' field in 'Zip64 Extra Field' is invalid
# value @ 0x1 should decode to signature for 'Local File Header' (0x04034B50). Got 0x2D04034B
#
# INFO: Offset 0x0: found 0x1 [1] bytes before beginning of zipfile
# INFO: Offset 0x0: found 0x1 (1) bytes before beginning of zipfile
#

0000 UNEXPECTED PADDING P
Original file line number Diff line number Diff line change
@@ -1,82 +1,82 @@

0000 LOCAL HEADER #1 04034B50 [67324752]
0004 Extract Zip Spec 2D [45] '4.5'
0005 Extract OS 00 [0] 'MS-DOS'
0006 General Purpose Flag 0000 [0]
0000 LOCAL HEADER #1 04034B50 (67324752)
0004 Extract Zip Spec 2D (45) '4.5'
0005 Extract OS 00 (0) 'MS-DOS'
0006 General Purpose Flag 0000 (0)
[Bits 1-2] 0 'Normal Compression'
0008 Compression Method 0008 [8] 'Deflated'
000A Last Mod Time 55818B40 [1434553152] 'Thu Dec 1 17:26:00 2022'
000E CRC F90EE7FF [4178503679]
0012 Compressed Length FFFFFFFF [4294967295]
0016 Uncompressed Length FFFFFFFF [4294967295]
001A Filename Length 0009 [9]
001C Extra Length 0014 [20]
0008 Compression Method 0008 (8) 'Deflated'
000A Last Mod Time 55818B40 (1434553152) 'Thu Dec 1 17:26:00 2022'
000E CRC F90EE7FF (4178503679)
0012 Compressed Length FFFFFFFF (4294967295)
0016 Uncompressed Length FFFFFFFF (4294967295)
001A Filename Length 0009 (9)
001C Extra Length 0014 (20)
001E Filename 'lorem.txt'
0027 Extra ID #1 0001 [1] 'ZIP64'
0029 Length 0010 [16]
002B Uncompressed Size 00000000000001BE [446]
0033 Compressed Size 000000000000010E [270]
0027 Extra ID #1 0001 (1) 'ZIP64'
0029 Length 0010 (16)
002B Uncompressed Size 00000000000001BE (446)
0033 Compressed Size 000000000000010E (270)
003B PAYLOAD

0149 CENTRAL HEADER #1 02014B50 [33639248]
014D Created Zip Spec 1E [30] '3.0'
014E Created OS 03 [3] 'Unix'
014F Extract Zip Spec 2D [45] '4.5'
0150 Extract OS 00 [0] 'MS-DOS'
0151 General Purpose Flag 0000 [0]
0149 CENTRAL HEADER #1 02014B50 (33639248)
014D Created Zip Spec 1E (30) '3.0'
014E Created OS 03 (3) 'Unix'
014F Extract Zip Spec 2D (45) '4.5'
0150 Extract OS 00 (0) 'MS-DOS'
0151 General Purpose Flag 0000 (0)
[Bits 1-2] 0 'Normal Compression'
0153 Compression Method 0008 [8] 'Deflated'
0155 Last Mod Time 55818B40 [1434553152] 'Thu Dec 1 17:26:00 2022'
0159 CRC F90EE7FF [4178503679]
015D Compressed Length 0000010E [270]
0161 Uncompressed Length 000001BE [446]
0165 Filename Length 0009 [9]
0167 Extra Length 000C [12]
0169 Comment Length 0000 [0]
016B Disk Start 0000 [0]
016D Int File Attributes 0001 [1]
0153 Compression Method 0008 (8) 'Deflated'
0155 Last Mod Time 55818B40 (1434553152) 'Thu Dec 1 17:26:00 2022'
0159 CRC F90EE7FF (4178503679)
015D Compressed Length 0000010E (270)
0161 Uncompressed Length 000001BE (446)
0165 Filename Length 0009 (9)
0167 Extra Length 000C (12)
0169 Comment Length 0000 (0)
016B Disk Start 0000 (0)
016D Int File Attributes 0001 (1)
[Bit 0] 1 'Text Data'
016F Ext File Attributes 81ED0000 [2179792896]
[Bits 16-24] 01ED [493] 'Unix attrib: rwxr-xr-x'
[Bits 28-31] 08 [8] 'Regular File'
0173 Local Header Offset FFFFFFFF [4294967295]
016F Ext File Attributes 81ED0000 (2179792896)
[Bits 16-24] 01ED (493) 'Unix attrib: rwxr-xr-x'
[Bits 28-31] 08 (8) 'Regular File'
0173 Local Header Offset FFFFFFFF (4294967295)
0177 Filename 'lorem.txt'
0180 Extra ID #1 0001 [1] 'ZIP64'
0182 Length 0008 [8]
0184 Offset to Local Dir 0000000000000001 [1]
0180 Extra ID #1 0001 (1) 'ZIP64'
0182 Length 0008 (8)
0184 Offset to Local Dir 0000000000000001 (1)
#
# ERROR: Offset 0x184: 'Offset to Local Dir' field in 'Zip64 Extra Field' is invalid
# value @ 0x1 should decode to signature for 'Local File Header' (0x04034B50). Got 0x2D04034B
#

018C ZIP64 END CENTRAL DIR 06064B50 [101075792]
018C ZIP64 END CENTRAL DIR 06064B50 (101075792)
RECORD
0190 Size of record 000000000000002C [44]
0198 Created Zip Spec 1E [30] '3.0'
0199 Created OS 03 [3] 'Unix'
019A Extract Zip Spec 2D [45] '4.5'
019B Extract OS 00 [0] 'MS-DOS'
019C Number of this disk 00000000 [0]
01A0 Central Dir Disk no 00000000 [0]
01A4 Entries in this disk 0000000000000001 [1]
01AC Total Entries 0000000000000001 [1]
01B4 Size of Central Dir 0000000000000043 [67]
01BC Offset to Central dir 0000000000000149 [329]
0190 Size of record 000000000000002C (44)
0198 Created Zip Spec 1E (30) '3.0'
0199 Created OS 03 (3) 'Unix'
019A Extract Zip Spec 2D (45) '4.5'
019B Extract OS 00 (0) 'MS-DOS'
019C Number of this disk 00000000 (0)
01A0 Central Dir Disk no 00000000 (0)
01A4 Entries in this disk 0000000000000001 (1)
01AC Total Entries 0000000000000001 (1)
01B4 Size of Central Dir 0000000000000043 (67)
01BC Offset to Central dir 0000000000000149 (329)

01C4 ZIP64 END CENTRAL DIR 07064B50 [117853008]
01C4 ZIP64 END CENTRAL DIR 07064B50 (117853008)
LOCATOR
01C8 Central Dir Disk no 00000000 [0]
01CC Offset to Zip64 EOCD 000000000000018C [396]
01D4 Total no of Disks 00000001 [1]
01C8 Central Dir Disk no 00000000 (0)
01CC Offset to Zip64 EOCD 000000000000018C (396)
01D4 Total no of Disks 00000001 (1)

01D8 END CENTRAL HEADER 06054B50 [101010256]
01DC Number of this disk 0000 [0]
01DE Central Dir Disk no 0000 [0]
01E0 Entries in this disk 0001 [1]
01E2 Total Entries 0001 [1]
01E4 Size of Central Dir 00000043 [67]
01E8 Offset to Central Dir FFFFFFFF [4294967295]
01EC Comment Length 0000 [0]
01D8 END CENTRAL HEADER 06054B50 (101010256)
01DC Number of this disk 0000 (0)
01DE Central Dir Disk no 0000 (0)
01E0 Entries in this disk 0001 (1)
01E2 Total Entries 0001 (1)
01E4 Size of Central Dir 00000043 (67)
01E8 Offset to Central Dir FFFFFFFF (4294967295)
01EC Comment Length 0000 (0)
#
# ERROR: Orphan Local Headers found: 1
# Offset Filename
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# ERROR: Offset 0x184: 'Offset to Local Dir' field in 'Zip64 Extra Field' is invalid
# value @ 0x1 should decode to signature for 'Local File Header' (0x04034B50). Got 0x2D04034B
#
# INFO: Offset 0x0: found 0x1 [1] bytes before beginning of zipfile
# INFO: Offset 0x0: found 0x1 (1) bytes before beginning of zipfile
#

0000 0000 0001 50 UNEXPECTED PADDING P
Original file line number Diff line number Diff line change
@@ -1,95 +1,95 @@

0000 0003 0004 50 4B 03 04 LOCAL HEADER #1 04034B50 [67324752]
0004 0004 0001 2D Extract Zip Spec 2D [45] '4.5'
0005 0005 0001 00 Extract OS 00 [0] 'MS-DOS'
0006 0007 0002 00 00 General Purpose Flag 0000 [0]
0000 0003 0004 50 4B 03 04 LOCAL HEADER #1 04034B50 (67324752)
0004 0004 0001 2D Extract Zip Spec 2D (45) '4.5'
0005 0005 0001 00 Extract OS 00 (0) 'MS-DOS'
0006 0007 0002 00 00 General Purpose Flag 0000 (0)
[Bits 1-2] 0 'Normal Compression'
0008 0009 0002 08 00 Compression Method 0008 [8] 'Deflated'
000A 000D 0004 40 8B 81 55 Last Mod Time 55818B40 [1434553152] 'Thu Dec 1 17:26:00 2022'
000E 0011 0004 FF E7 0E F9 CRC F90EE7FF [4178503679]
0012 0015 0004 FF FF FF FF Compressed Length FFFFFFFF [4294967295]
0016 0019 0004 FF FF FF FF Uncompressed Length FFFFFFFF [4294967295]
001A 001B 0002 09 00 Filename Length 0009 [9]
001C 001D 0002 14 00 Extra Length 0014 [20]
0008 0009 0002 08 00 Compression Method 0008 (8) 'Deflated'
000A 000D 0004 40 8B 81 55 Last Mod Time 55818B40 (1434553152) 'Thu Dec 1 17:26:00 2022'
000E 0011 0004 FF E7 0E F9 CRC F90EE7FF (4178503679)
0012 0015 0004 FF FF FF FF Compressed Length FFFFFFFF (4294967295)
0016 0019 0004 FF FF FF FF Uncompressed Length FFFFFFFF (4294967295)
001A 001B 0002 09 00 Filename Length 0009 (9)
001C 001D 0002 14 00 Extra Length 0014 (20)
001E 0026 0009 6C 6F 72 65 Filename 'lorem.txt'
6D 2E 74 78
74
0027 0028 0002 01 00 Extra ID #1 0001 [1] 'ZIP64'
0029 002A 0002 10 00 Length 0010 [16]
002B 0032 0008 BE 01 00 00 Uncompressed Size 00000000000001BE [446]
0027 0028 0002 01 00 Extra ID #1 0001 (1) 'ZIP64'
0029 002A 0002 10 00 Length 0010 (16)
002B 0032 0008 BE 01 00 00 Uncompressed Size 00000000000001BE (446)
00 00 00 00
0033 003A 0008 0E 01 00 00 Compressed Size 000000000000010E [270]
0033 003A 0008 0E 01 00 00 Compressed Size 000000000000010E (270)
00 00 00 00
003B 0148 010E ... PAYLOAD

0149 014C 0004 50 4B 01 02 CENTRAL HEADER #1 02014B50 [33639248]
014D 014D 0001 1E Created Zip Spec 1E [30] '3.0'
014E 014E 0001 03 Created OS 03 [3] 'Unix'
014F 014F 0001 2D Extract Zip Spec 2D [45] '4.5'
0150 0150 0001 00 Extract OS 00 [0] 'MS-DOS'
0151 0152 0002 00 00 General Purpose Flag 0000 [0]
0149 014C 0004 50 4B 01 02 CENTRAL HEADER #1 02014B50 (33639248)
014D 014D 0001 1E Created Zip Spec 1E (30) '3.0'
014E 014E 0001 03 Created OS 03 (3) 'Unix'
014F 014F 0001 2D Extract Zip Spec 2D (45) '4.5'
0150 0150 0001 00 Extract OS 00 (0) 'MS-DOS'
0151 0152 0002 00 00 General Purpose Flag 0000 (0)
[Bits 1-2] 0 'Normal Compression'
0153 0154 0002 08 00 Compression Method 0008 [8] 'Deflated'
0155 0158 0004 40 8B 81 55 Last Mod Time 55818B40 [1434553152] 'Thu Dec 1 17:26:00 2022'
0159 015C 0004 FF E7 0E F9 CRC F90EE7FF [4178503679]
015D 0160 0004 0E 01 00 00 Compressed Length 0000010E [270]
0161 0164 0004 BE 01 00 00 Uncompressed Length 000001BE [446]
0165 0166 0002 09 00 Filename Length 0009 [9]
0167 0168 0002 0C 00 Extra Length 000C [12]
0169 016A 0002 00 00 Comment Length 0000 [0]
016B 016C 0002 00 00 Disk Start 0000 [0]
016D 016E 0002 01 00 Int File Attributes 0001 [1]
0153 0154 0002 08 00 Compression Method 0008 (8) 'Deflated'
0155 0158 0004 40 8B 81 55 Last Mod Time 55818B40 (1434553152) 'Thu Dec 1 17:26:00 2022'
0159 015C 0004 FF E7 0E F9 CRC F90EE7FF (4178503679)
015D 0160 0004 0E 01 00 00 Compressed Length 0000010E (270)
0161 0164 0004 BE 01 00 00 Uncompressed Length 000001BE (446)
0165 0166 0002 09 00 Filename Length 0009 (9)
0167 0168 0002 0C 00 Extra Length 000C (12)
0169 016A 0002 00 00 Comment Length 0000 (0)
016B 016C 0002 00 00 Disk Start 0000 (0)
016D 016E 0002 01 00 Int File Attributes 0001 (1)
[Bit 0] 1 'Text Data'
016F 0172 0004 00 00 ED 81 Ext File Attributes 81ED0000 [2179792896]
[Bits 16-24] 01ED [493] 'Unix attrib: rwxr-xr-x'
[Bits 28-31] 08 [8] 'Regular File'
0173 0176 0004 FF FF FF FF Local Header Offset FFFFFFFF [4294967295]
016F 0172 0004 00 00 ED 81 Ext File Attributes 81ED0000 (2179792896)
[Bits 16-24] 01ED (493) 'Unix attrib: rwxr-xr-x'
[Bits 28-31] 08 (8) 'Regular File'
0173 0176 0004 FF FF FF FF Local Header Offset FFFFFFFF (4294967295)
0177 017F 0009 6C 6F 72 65 Filename 'lorem.txt'
6D 2E 74 78
74
0180 0181 0002 01 00 Extra ID #1 0001 [1] 'ZIP64'
0182 0183 0002 08 00 Length 0008 [8]
0184 018B 0008 01 00 00 00 Offset to Local Dir 0000000000000001 [1]
0180 0181 0002 01 00 Extra ID #1 0001 (1) 'ZIP64'
0182 0183 0002 08 00 Length 0008 (8)
0184 018B 0008 01 00 00 00 Offset to Local Dir 0000000000000001 (1)
00 00 00 00
#
# ERROR: Offset 0x184: 'Offset to Local Dir' field in 'Zip64 Extra Field' is invalid
# value @ 0x1 should decode to signature for 'Local File Header' (0x04034B50). Got 0x2D04034B
#

018C 018F 0004 50 4B 06 06 ZIP64 END CENTRAL DIR 06064B50 [101075792]
018C 018F 0004 50 4B 06 06 ZIP64 END CENTRAL DIR 06064B50 (101075792)
RECORD
0190 0197 0008 2C 00 00 00 Size of record 000000000000002C [44]
0190 0197 0008 2C 00 00 00 Size of record 000000000000002C (44)
00 00 00 00
0198 0198 0001 1E Created Zip Spec 1E [30] '3.0'
0199 0199 0001 03 Created OS 03 [3] 'Unix'
019A 019A 0001 2D Extract Zip Spec 2D [45] '4.5'
019B 019B 0001 00 Extract OS 00 [0] 'MS-DOS'
019C 019F 0004 00 00 00 00 Number of this disk 00000000 [0]
01A0 01A3 0004 00 00 00 00 Central Dir Disk no 00000000 [0]
01A4 01AB 0008 01 00 00 00 Entries in this disk 0000000000000001 [1]
0198 0198 0001 1E Created Zip Spec 1E (30) '3.0'
0199 0199 0001 03 Created OS 03 (3) 'Unix'
019A 019A 0001 2D Extract Zip Spec 2D (45) '4.5'
019B 019B 0001 00 Extract OS 00 (0) 'MS-DOS'
019C 019F 0004 00 00 00 00 Number of this disk 00000000 (0)
01A0 01A3 0004 00 00 00 00 Central Dir Disk no 00000000 (0)
01A4 01AB 0008 01 00 00 00 Entries in this disk 0000000000000001 (1)
00 00 00 00
01AC 01B3 0008 01 00 00 00 Total Entries 0000000000000001 [1]
01AC 01B3 0008 01 00 00 00 Total Entries 0000000000000001 (1)
00 00 00 00
01B4 01BB 0008 43 00 00 00 Size of Central Dir 0000000000000043 [67]
01B4 01BB 0008 43 00 00 00 Size of Central Dir 0000000000000043 (67)
00 00 00 00
01BC 01C3 0008 49 01 00 00 Offset to Central dir 0000000000000149 [329]
01BC 01C3 0008 49 01 00 00 Offset to Central dir 0000000000000149 (329)
00 00 00 00

01C4 01C7 0004 50 4B 06 07 ZIP64 END CENTRAL DIR 07064B50 [117853008]
01C4 01C7 0004 50 4B 06 07 ZIP64 END CENTRAL DIR 07064B50 (117853008)
LOCATOR
01C8 01CB 0004 00 00 00 00 Central Dir Disk no 00000000 [0]
01CC 01D3 0008 8C 01 00 00 Offset to Zip64 EOCD 000000000000018C [396]
01C8 01CB 0004 00 00 00 00 Central Dir Disk no 00000000 (0)
01CC 01D3 0008 8C 01 00 00 Offset to Zip64 EOCD 000000000000018C (396)
00 00 00 00
01D4 01D7 0004 01 00 00 00 Total no of Disks 00000001 [1]
01D4 01D7 0004 01 00 00 00 Total no of Disks 00000001 (1)

01D8 01DB 0004 50 4B 05 06 END CENTRAL HEADER 06054B50 [101010256]
01DC 01DD 0002 00 00 Number of this disk 0000 [0]
01DE 01DF 0002 00 00 Central Dir Disk no 0000 [0]
01E0 01E1 0002 01 00 Entries in this disk 0001 [1]
01E2 01E3 0002 01 00 Total Entries 0001 [1]
01E4 01E7 0004 43 00 00 00 Size of Central Dir 00000043 [67]
01E8 01EB 0004 FF FF FF FF Offset to Central Dir FFFFFFFF [4294967295]
01EC 01ED 0002 00 00 Comment Length 0000 [0]
01D8 01DB 0004 50 4B 05 06 END CENTRAL HEADER 06054B50 (101010256)
01DC 01DD 0002 00 00 Number of this disk 0000 (0)
01DE 01DF 0002 00 00 Central Dir Disk no 0000 (0)
01E0 01E1 0002 01 00 Entries in this disk 0001 (1)
01E2 01E3 0002 01 00 Total Entries 0001 (1)
01E4 01E7 0004 43 00 00 00 Size of Central Dir 00000043 (67)
01E8 01EB 0004 FF FF FF FF Offset to Central Dir FFFFFFFF (4294967295)
01EC 01ED 0002 00 00 Comment Length 0000 (0)
#
# ERROR: Orphan Local Headers found: 1
# Offset Filename
Expand Down
Loading

0 comments on commit 5b03944

Please sign in to comment.