From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Library:Libbrotli" |
|---|
| claim | "BrotliDecoderVersion() and BrotliEncoderVersion() return BROTLI_VERSION = (major << 24) | (minor << 12) | patch. On x86/x64 they compile to mov eax, imm32; ret, e.g. B8 00 10 00 01 C3 for 1.1.0, which gives the version of a stripped binary once the export or call is found." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Libbrotli" |
|---|
| observed_in | |
|---|
|
|---|
| data | | function | "BrotliDecoderVersion" |
|---|
| effect | "returns (major << 24) | (minor << 12) | patch" |
|---|
| test_vectors | | input | "1.0.9" |
|---|
| expected | "0x01000009" |
|---|
|
| input | "1.1.0" |
|---|
| expected | "0x01001000" |
|---|
|
| input | "1.2.0" |
|---|
| expected | "0x01002000" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "BROTLI_MAKE_HEX_VERSION(A, B, C) ((A << 24) | (B << 12) | C); v1.0.9 defines BROTLI_VERSION 0x1000009 directly" |
|---|
| repo | "https://github.com/google/brotli" |
|---|
| commit | "86ee1f65f62d6272345dee751d49e7d1f01c2b11" |
|---|
| path | "c/common/version.h" |
|---|
| lines | "14-25" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "BrotliDecoderVersion export of libbrotlidec.dll (Git for Windows 2.47.1, RVA 0x87C0) is B8 00 10 00 01 C3; in .NET 10.0.11 System.IO.Compression.Native.dll both version exports share RVA 0x7D20 with the same bytes (identical-code folding)" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Version number encoding" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T19:03:32.716Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T06:08:47.459Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read google/brotli 86ee1f6 c/common/version.h: BROTLI_MAKE_HEX_VERSION = (A<<24)|(B<<12)|C and version 1.2.0 there gives 0x01002000. Not re-read: the 1.0.9 literal and the instruction bytes (they hold for optimised builds only; a debug build need not compile to mov eax, imm32; ret)." |
|---|
|
|
|---|