From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "global" |
|---|
| subject | "Library:Liblz4" |
|---|
| claim | "liblz4 1.8.3 and later have the decoder table dec64table = {0, 0, 0, -1, -4, 1, 2, 3} (int[8], 32 bytes) next to inc32table; these 32 bytes find it in read-only data. Up to 1.8.0 dec64table was {0, 0, 0, -1, 0, 1, 2, 3}." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Liblz4" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "dec64table" |
|---|
| type | "const int[8]" |
|---|
| size | 32 |
|---|
| signature | "00 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FC FF FF FF 01 00 00 00 02 00 00 00 03 00 00 00" |
|---|
| multiple | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "static const int dec64table[8] = {0, 0, 0, -1, -4, 1, 2, 3};" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "lib/lz4.c" |
|---|
| lines | "476" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Found once in msys-lz4-1.dll 1.10.0 (RVA 0x23020, before inc32table in this GCC build), Unity liblz4.dll 1.9.1 (RVA 0x16190), Unity liblz4.so 1.9.2 (file offset 0x1C020) and twice in QuickBMS." |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Negative scan of 452 DLL/EXE files of Git for Windows: only msys-lz4-1.dll matches, once." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "dec64table" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:56:06.252Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:20:33.003Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lib/lz4.c at aa787570 line 476: static const int dec64table[8] = {0, 0, 0, -1, -4, 1, 2, 3}; the 32-byte signature is that array as LE int32. Versions before 1.8.3 not re-read." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T17:59:17.925Z" |
|---|
| summary | "Add a negative scan" |
|---|
| changed | |
|---|
|
|
|---|