From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "global" |
|---|
| subject | "Library:Liblz4" |
|---|
| claim | "liblz4 1.8.3 and later have the decoder table inc32table = {0, 1, 2, 1, 0, 4, 4, 4} (unsigned[8], 32 bytes), used for overlapping copies with offsets below 8; compilers usually keep it in read-only data (file-scope static since 1.9.0), where these 32 bytes find it." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Liblz4" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "inc32table" |
|---|
| type | "const unsigned int[8]" |
|---|
| size | 32 |
|---|
| signature | "00 00 00 00 01 00 00 00 02 00 00 00 01 00 00 00 00 00 00 00 04 00 00 00 04 00 00 00 04 00 00 00" |
|---|
| multiple | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "static const unsigned inc32table[8] = {0, 1, 2, 1, 0, 4, 4, 4};" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "lib/lz4.c" |
|---|
| lines | "475" |
|---|
|
| type | "source" |
|---|
| detail | "v1.8.3 has const unsigned inc32table[8] inside LZ4_decompress_generic (lib/lz4.c 1425); v1.8.0 and older have dec32table {0,1,2,1,4,4,4,4} instead" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "641b453d9db536ee020851bfcb1dc39f61006f0a" |
|---|
| path | "lib/lz4.c" |
|---|
| lines | "1425-1426" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Found once in msys-lz4-1.dll 1.10.0 (RVA 0x23040, .rdata), Unity liblz4.dll 1.9.1 (RVA 0x16170, followed directly by dec64table), Unity liblz4.so 1.9.2 (file offset 0x1C040) and twice in QuickBMS (two static copies); absent from 1.7.x builds." |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Negative scan of 452 DLL/EXE files of Git for Windows (including libzstd.dll and msys-zstd-1.dll, whose decoder has a similar dec32table): only msys-lz4-1.dll matches, once." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "inc32table" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:56:06.174Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:20:33.074Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lib/lz4.c at aa787570 line 475: static const unsigned inc32table[8] = {0, 1, 2, 1, 0, 4, 4, 4}; the 32-byte signature is that array as LE uint32." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T17:59:17.858Z" |
|---|
| summary | "Add a negative scan" |
|---|
| changed | |
|---|
|
|
|---|