From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Bzip2" |
|---|
| claim | "A bzip2 stream starts with 42 5A 68 'BZh' and a digit '1'-'9' (block size x100k); each block begins with the 48-bit magic 31 41 59 26 53 59 and the stream ends with 17 72 45 38 50 90 plus the combined CRC." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Bzip2" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "42 5A 68" |
|---|
| offset | 0 |
|---|
| meaning | "bzip2 stream header; byte 3 is the ASCII digit 0x31-0x39 giving the block size in 100000-byte units" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "decoder accepts BZ_HDR_0+1..+9 then expects 0x31 0x41 0x59 0x26 0x53 0x59 (or 0x17 for end of stream)" |
|---|
| repo | "https://sourceware.org/git/bzip2.git" |
|---|
| commit | "f5dfc96063fef2d9c5446d0733867d899ef9b942" |
|---|
| path | "decompress.c" |
|---|
| lines | "205-231" |
|---|
|
| type | "source" |
|---|
| detail | "encoder writes the header, block magic and 17 72 45 38 50 90 trailer" |
|---|
| repo | "https://sourceware.org/git/bzip2.git" |
|---|
| commit | "f5dfc96063fef2d9c5446d0733867d899ef9b942" |
|---|
| path | "compress.c" |
|---|
| lines | "625-662" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "BZh stream header and block magics" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T07:00:56.028Z" |
|---|
| verifications | |
|---|