From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:XZ" |
|---|
| claim | "Every .xz Stream ends with the Footer Magic Bytes 59 5A ("YZ"), the last 2 bytes of the 12-byte Stream Footer (CRC32, Backward Size, Stream Flags, 'YZ'); a file whose last non-null bytes are not 'YZ' is truncated." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:XZ" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "59 5A" |
|---|
| offset | "10 within the Stream Footer (end of Stream - 2)" |
|---|
| meaning | "end of an .xz Stream" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "Section 2.1.2.4 Footer Magic Bytes" |
|---|
| repo | "https://github.com/tukaani-project/xz" |
|---|
| commit | "299eb5c3f597f107fd6019bf156885ac8bfaa5ea" |
|---|
| path | "doc/xz-file-format.txt" |
|---|
| lines | "435-453" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "All 13 samples of mksamples.py end with 59 5A per Stream; two-streams.xz has it at 0x3A and 0x62." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Stream Footer magic" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T16:35:44.285Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T12:36:25.593Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read doc/xz-file-format.txt 435-453 at 299eb5c: FOOTER_MAGIC 59 5A, last step of decoding, file must end with it excluding Stream Padding; 12-byte footer puts it at offset 10." |
|---|
|
|
|---|