From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:PNG" |
|---|
| claim | "The PNG chunk CRC is the standard reflected CRC-32 (zlib crc32(), as in gzip and ZIP) over the 4 type bytes followed by the data; the length field is not included." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:PNG" |
|---|
| observed_in | |
|---|
|
|---|
| data | | effect | "crc = crc32(type + data)" |
|---|
| test_vectors | | input | "49 45 4E 44 ('IEND', no data)" |
|---|
| expected | "0xAE426082" |
|---|
|
| input | "49 48 44 52 00 00 00 01 00 00 00 01 08 00 00 00 00 (IHDR, 1x1, 8-bit greyscale)" |
|---|
| expected | "0x3A7E9B55" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "https://www.w3.org/TR/png-3/ section 5.5 CRC algorithm" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Python 3 zlib.crc32 on the inputs; a 67-byte 1x1 PNG built with these CRCs decodes in pngdump" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Chunk CRC" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T08:50:44.248Z" |
|---|
| verifications | |
|---|