From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Liblz4" |
|---|
| claim | "LZ4_versionNumber() returns LZ4_VERSION_NUMBER = MAJOR*10000 + MINOR*100 + RELEASE as a constant, so on x86-64 it is mov eax, imm32; ret: 1.10.0 is B8 F8 2A 00 00 C3 (11000). LZ4_versionString() (1.7.5+) returns the text, e.g. "1.10.0". Builds checked: 10701, 10704, 10705, 10901, 10902, 11000." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Liblz4" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "constant returned by an exported function" |
|---|
| indicator | "LZ4_versionNumber: B8 <MAJOR*10000+MINOR*100+RELEASE as imm32> C3" |
|---|
| table | | 1.7.1 (r131) | "10701 = 0x29CD" |
|---|
| 1.7.4 | "10704 = 0x29D0" |
|---|
| 1.7.5 | "10705 = 0x29D1" |
|---|
| 1.9.1 | "10901 = 0x2A95" |
|---|
| 1.9.2 | "10902 = 0x2A96" |
|---|
| 1.9.4 | "10904 = 0x2A98" |
|---|
| 1.10.0 | "11000 = 0x2AF8" |
|---|
|
|---|
| test_vectors | | input | "B8 F8 2A 00 00 C3" |
|---|
| expected | "liblz4 1.10.0" |
|---|
|
| input | "B8 95 2A 00 00 C3" |
|---|
| expected | "liblz4 1.9.1" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "#define LZ4_VERSION_NUMBER (LZ4_VERSION_MAJOR *100*100 + LZ4_VERSION_MINOR *100 + LZ4_VERSION_RELEASE)" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "lib/lz4.h" |
|---|
| lines | "131-143" |
|---|
|
| type | "source" |
|---|
| detail | "int LZ4_versionNumber (void) { return LZ4_VERSION_NUMBER; } const char* LZ4_versionString(void) { return LZ4_VERSION_STRING; }" |
|---|
| repo | "https://github.com/lz4/lz4" |
|---|
| commit | "aa787570e681c695fc087b4a44cd2d5b38c2289a" |
|---|
| path | "lib/lz4.c" |
|---|
| lines | "758-759" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "mov eax, imm32; ret found: msys-lz4-1.dll of Git for Windows 11000 (export at RVA 0x1A90, string "1.10.0"), Unity Editor package liblz4.dll 10901 and liblz4.so 10902, cyglz4-1.dll of cwRsync 10705, a Vortex plugin's liblz4.dll 10704, LSLibNative.dll 10701 (static)." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Version number encoding" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:56:06.022Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T02:28:03.206Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read lib/lz4.h and lz4.c at the cited commit and recomputed the table: 1.10.0 = 11000 = 0x2AF8, 1.9.1 = 10901 = 0x2A95, 10705 = 0x29D1. Binary bytes not re-checked." |
|---|
|
|
|---|