From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "signature" |
|---|
| subject | "Library:Liblzma" |
|---|
| claim | "On 64-bit targets liblzma 5.4.0 and later have the filter features[] table (filter_common.c) starting with the LZMA1 row (id 0x4000000000000001, options size 0x70, non_last_ok 0, last_ok 1, changes_size 1) followed by the LZMA1EXT row (id 0x4000000000000002)." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:Liblzma" |
|---|
| observed_in | |
|---|
|
|---|
| data | | pattern | "01 00 00 00 00 00 00 40 70 00 00 00 00 00 00 00 00 01 01 ?? ?? ?? ?? ?? 02 00 00 00 00 00 00 40 70 00 00 00 00 00 00 00 00 01 01" |
|---|
| matches | "start of features[] (24-byte rows, ends with id FF x8)" |
|---|
| name | "features" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "static const struct { lzma_vli id; size_t options_size; bool non_last_ok, last_ok, changes_size; } features[]; LZMA1EXT row since v5.4.0 (checked at tags v5.0.0, v5.2.5, v5.4.0, v5.6.0)" |
|---|
| repo | "https://github.com/tukaani-project/xz" |
|---|
| commit | "299eb5c3f597f107fd6019bf156885ac8bfaa5ea" |
|---|
| path | "src/liblzma/common/filter_common.c" |
|---|
| lines | "15-145" |
|---|
|
| type | "byte_pattern" |
|---|
| detail | "Matches once in liblzma-5.dll 5.6.3 (0x1FEA0, 12 rows + terminator) and in CPython 3.11 _lzma.pyd (0x19B40, 11 rows + terminator); padding bytes were 00 in both." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "features table (5.4+, 64-bit)" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T16:35:45.746Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:18:09.073Z" |
|---|
| result | "partial" |
|---|
| method | "Read common/filter_common.c at 299eb5c3 lines 15-60: row struct {lzma_vli id; size_t options_size; bool non_last_ok, last_ok, changes_size}; LZMA1 row (false,true,true) then LZMA1EXT row, as in the pattern; the 24-byte row size and the options_size 0x70 (sizeof lzma_options_lzma) are layout facts I did not derive from source." |
|---|
|
|
|---|