From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "identification" |
|---|
| subject | "Library:Libzstd" |
|---|
| claim | "ZSTD_versionNumber() returns ZSTD_VERSION_NUMBER = MAJOR*10000 + MINOR*100 + RELEASE as a constant, so on x86-64 it compiles to mov eax, imm32; ret. 1.5.6 returns 10506 (0x290A, code B8 0A 29 00 00 C3); ZSTD_versionString() returns a pointer to the text "1.5.6"." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libzstd" |
|---|
| observed_in | |
|---|
|
|---|
| data | | method | "constant returned by an exported function" |
|---|
| indicator | "ZSTD_versionNumber: B8 <MAJOR*10000+MINOR*100+RELEASE as imm32> C3" |
|---|
| table | | 1.5.6 | "10506 = 0x290A" |
|---|
| 1.5.7 | "10507 = 0x290B" |
|---|
| 1.6.0 (development, unreleased at the pinned commit) | "10600 = 0x2968" |
|---|
|
|---|
| test_vectors | | input | "B8 0A 29 00 00 C3" |
|---|
| expected | "libzstd 1.5.6" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "#define ZSTD_VERSION_NUMBER (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE)" |
|---|
| repo | "https://github.com/facebook/zstd" |
|---|
| commit | "49cf51799ea051457f57243527aa2058f999f005" |
|---|
| path | "lib/zstd.h" |
|---|
| lines | "112-121" |
|---|
|
| type | "source" |
|---|
| detail | "unsigned ZSTD_versionNumber(void) { return ZSTD_VERSION_NUMBER; } const char* ZSTD_versionString(void) { return ZSTD_VERSION_STRING; }" |
|---|
| repo | "https://github.com/facebook/zstd" |
|---|
| commit | "49cf51799ea051457f57243527aa2058f999f005" |
|---|
| path | "lib/common/zstd_common.c" |
|---|
| lines | "24-26" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Export ZSTD_versionNumber of libzstd.dll 1.5.6 (RVA 0x5920) and msys-zstd-1.dll (0x52D0) is B8 0A 29 00 00 C3; ZSTD_versionString (lea rax, [rip+...]; ret) points to "1.5.6" at RVA 0x10C790." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Version number encoding" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T17:13:44.518Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T02:49:31.275Z" |
|---|
| result | "confirmed" |
|---|
| method | "Checked arithmetic: 1.5.6 = 1*10000+5*100+6 = 10506 = 0x290A, so B8 0A 29 00 00 C3 follows from the cited macro in lib/zstd.h and zstd_common.c; 1.5.7 = 10507 = 0x290B." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T02:39:14.382Z" |
|---|
| summary | "1.6.0 is not a release: it is the development value on the pinned commit (latest tag is v1.5.7)." |
|---|
| changed | |
|---|
|
|
|---|