From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Library:Zlib" |
|---|
| claim | "In default (non-FASTEST) 32-bit builds zlib's deflate configuration_table[10] (deflate.c) is 12-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}, and the table starts 0x18 bytes before the pattern. A build with FASTEST defined has only two rows and does not contain this pattern." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Zlib" |
|---|
| observed_in | | "TortoiseGit zlib132 tgit.dll (x86, zlib 1.3.1)" |
|
|---|
|
|---|
| 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), 32-bit pointers; the table itself starts 0x18 bytes before the match" |
|---|
| offset | 0 |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "configuration_table rows; struct config in deflate.c (four ush and one function pointer)." |
|---|
| repo | "https://github.com/madler/zlib" |
|---|
| commit | "767c4c947852e143f582c85f14cf573411df1b35" |
|---|
| path | "deflate.c" |
|---|
| lines | "112-124" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Hit at 0x1d8d0 in the x86 zlib132_tgit.dll." |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "configuration table (32-bit)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T05:49:43.852Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:17:36.345Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read deflate.c at 767c4c94: config struct of 4 ush + pointer is 12 bytes with 4-byte pointers, rows 2/3 as in the pattern; narrowed the claim to the default (non-FASTEST) table. Not checked on a 32-bit binary." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T05:52:58.464Z" |
|---|
| summary | "offset 24 was meant as 'table starts 0x18 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:51.036Z" |
|---|
| summary | "Narrowed to the default build: with FASTEST defined deflate.c has a 2-row table and no levels 2/3 (deflate.c lines 106-110)" |
|---|
| changed | |
|---|
|
|
|---|