From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "string" |
|---|
| subject | "Library:Zlib" |
|---|
| claim | "inflate() sets strm->msg to 'incorrect header check' when the 2-byte zlib header fails the % 31 check (or a gzip/raw stream is fed to a zlib-only inflate); with 'invalid distance too far back', 'incorrect data check', 'unknown compression method' and 'invalid window size' these strings locate inflate() through their cross-references." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Zlib" |
|---|
| observed_in | | "All zlib binaries checked, including MSVC builds without the copyright banners" |
|
|---|
|
|---|
| data | | value | "incorrect header check" |
|---|
| meaning | "zlib header check failed in inflate(); xref leads to inflate()" |
|---|
| encoding | "ascii" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "strm->msg = (z_const char *)"incorrect header check"; others at lines 534, 543, 1012, 1087, 1101" |
|---|
| repo | "https://github.com/madler/zlib" |
|---|
| commit | "767c4c947852e143f582c85f14cf573411df1b35" |
|---|
| path | "inflate.c" |
|---|
| lines | "529" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "Python zlib.decompress(b'\x78\x9d\x03\x00') and zlib.decompress(gzip data) both raise 'Error -3 while decompressing data: incorrect header check'." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "incorrect header check" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T05:49:44.063Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:21:08.813Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read inflate.c at 767c4c94 lines 520-531: strm->msg = (z_const char *)"incorrect header check" when !(state->wrap & 1) (zlib header not allowed) or ((BITS(8) << 8) + (hold >> 8)) % 31 is non-zero; 'unknown compression method' at 534/559, 'invalid window size' 543, 'invalid distance too far back' 1012, 'incorrect data check' 1087 as cited (line 1101 in the evidence is 'incorrect length check', not in the claim list)." |
|---|
|
|
|---|