From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Library:Zlib" |
|---|
| claim | "In default (non-FASTEST) 64-bit builds zlib's deflate configuration_table[10] (deflate.c) is 16-byte rows {ushort good_length, max_lazy, nice_length, max_chain; compress_func}; levels 2 and 3 read {4,5,16,8,deflate_fast} {4,6,32,32,deflate_fast}. The row before (level 1) is {4,4,8,4}, the table starts at pattern - 0x20; the pointers give deflate_stored, deflate_fast and deflate_slow. A build with FASTEST defined has only two rows ({0,0,0,0,deflate_stored}, {4,4,8,4,deflate_fast}) and does not contain this pattern." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Zlib" |
|---|
| observed_in | | "Zlib1.dll 1.3.1 (MinGW-w64)" |
| "Python311.dll" |
| "Python312.dll" |
| "TortoiseGit zlib1 tgit.dll" |
| "Node.exe v24.13.0 (two copies)" |
|
|---|
|
|---|
| data | | pattern | "04 00 05 00 10 00 08 00 ?? ?? ?? ?? ?? ?? ?? ?? 04 00 06 00 20 00 20 00" |
|---|
| matches | "configuration_table[2] and [3] (deflate.c), 64-bit pointers; the table itself starts 0x20 bytes before the match" |
|---|
| offset | 0 |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "local const config configuration_table[10] = {{0,0,0,0,deflate_stored},{4,4,8,4,deflate_fast},{4,5,16,8,deflate_fast},{4,6,32,32,deflate_fast},{4,4,16,16,deflate_slow},..." |
|---|
| repo | "https://github.com/madler/zlib" |
|---|
| commit | "767c4c947852e143f582c85f14cf573411df1b35" |
|---|
| path | "deflate.c" |
|---|
| lines | "112-124" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Hit at 0x16aa0 in MinGW zlib1.dll 1.3.1 and once per copy in the other observed x64 binaries." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "configuration table (64-bit)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T05:49:43.789Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:17:36.279Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read deflate.c at 767c4c94: config struct is 4 ush + a function pointer (16 bytes on LP64/LLP64) and rows 2/3 are {4,5,16,8,deflate_fast} {4,6,32,32,deflate_fast}; also found the #ifdef FASTEST 2-row variant (lines 106-110) and narrowed the claim to the default table (lines 112-123)." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T05:52:58.374Z" |
|---|
| summary | "offset 32 was meant as 'table starts 0x20 before the match', the opposite of the field's meaning (and exporters ignore it): set 0, say it in matches" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T11:08:50.965Z" |
|---|
| summary | "Narrowed to the default build: deflate.c under #ifdef FASTEST defines a 2-row table instead; checked rows 1-3 against deflate.c at the cited commit (table at lines 112-123, FASTEST variant 106-110)" |
|---|
| changed | |
|---|
|
|
|---|