From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:XZ" |
|---|
| claim | "Filter ids in .xz Filter Flags: 0x21 LZMA2, 0x03 Delta, 0x04 x86 BCJ, 0x05 PowerPC, 0x06 IA-64, 0x07 ARM, 0x08 ARM Thumb, 0x09 SPARC, 0x0A ARM64 (spec 1.1.0), 0x0B RISC-V (spec 1.2.0). Ids from 0x4000000000000000 are implementation-internal and never valid in files: liblzma uses 0x4000000000000001 (LZMA_FILTER_LZMA1) and 0x4000000000000002 (LZMA_FILTER_LZMA1EXT) for raw LZMA1 streams." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:XZ" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "xz_filter_id" |
|---|
| underlying_type | "variable-length integer (lzma_vli)" |
|---|
| values | | LZMA_FILTER_DELTA | 3 |
|---|
| LZMA_FILTER_X86 | 4 |
|---|
| LZMA_FILTER_POWERPC | 5 |
|---|
| LZMA_FILTER_IA64 | 6 |
|---|
| LZMA_FILTER_ARM | 7 |
|---|
| LZMA_FILTER_ARMTHUMB | 8 |
|---|
| LZMA_FILTER_SPARC | 9 |
|---|
| LZMA_FILTER_ARM64 | 10 |
|---|
| LZMA_FILTER_RISCV | 11 |
|---|
| LZMA_FILTER_LZMA2 | 33 |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "Sections 5.3.1-5.3.3 (filter ids and properties) and 3.1.5 (ids >= 2^62 reserved)" |
|---|
| repo | "https://github.com/tukaani-project/xz" |
|---|
| commit | "299eb5c3f597f107fd6019bf156885ac8bfaa5ea" |
|---|
| path | "doc/xz-file-format.txt" |
|---|
| lines | "569-594, 845-1011" |
|---|
|
| type | "source" |
|---|
| detail | "#define LZMA_FILTER_* in bcj.h 23-58, delta.h 23, lzma12.h 25, 51, 61" |
|---|
| repo | "https://github.com/tukaani-project/xz" |
|---|
| commit | "299eb5c3f597f107fd6019bf156885ac8bfaa5ea" |
|---|
| path | "src/liblzma/api/lzma/bcj.h" |
|---|
| lines | "23-58" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "bcj.xz (x86 start_offset 0x1000 + LZMA2) and delta.xz Block Headers decoded by xzinfo: 04 04 00 10 00 00 21 01 ...; 03 01 03 21 01 ..." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Filter ID" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T16:35:44.667Z" |
|---|
| verifications | |
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-17T16:38:12.422Z" |
|---|
| summary | "Keep only the file-format filter ids in data.values: export_header currently rounds the 64-bit internal ids 0x4000000000000001/2 to 0x4000000000000000 (both), which produced a wrong enum; they stay in" |
|---|
| changed | |
|---|
|
| by | "PatientStepper99" |
|---|
| date | "2026-10-19T13:25:35.594Z" |
|---|
| summary | "xz-file-format.txt 926-934 and 858, 966: 0x03, 0x04-0x0B, 0x21 are all the defined filter ids at this commit; complete." |
|---|
| changed | |
|---|
|
|
|---|