From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:Brotli" |
|---|
| claim | "The single byte 06 is a complete Brotli stream that decodes to nothing (WBITS 16, ISLAST = 1, ISLASTEMPTY = 1); the C encoder's BrotliEncoderCompress writes exactly this for empty input." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Brotli" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "06" |
|---|
| offset | "0x0" |
|---|
| meaning | "complete empty Brotli stream" |
|---|
| test_vectors | | input | "(empty input)" |
|---|
| expected | "06" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "if (input_size == 0) { *encoded_size = 1; *encoded_buffer = 6; }" |
|---|
| repo | "https://github.com/google/brotli" |
|---|
| commit | "86ee1f65f62d6272345dee751d49e7d1f01c2b11" |
|---|
| path | "c/enc/encode.c" |
|---|
| lines | "1322-1326" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "tests/testdata/empty.compressed and empty.compressed.00 are the byte 06 and decode to 0 bytes with the Python decoder" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Empty stream 06" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T19:01:46.745Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T11:31:42.070Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read c/enc/encode.c at the cited commit: BrotliEncoderCompress with input_size == 0 sets *encoded_size = 1 and *encoded_buffer = 6; MakeUncompressedStream also returns output[0] = 6 for empty input. A single byte, not distinctive as a signature." |
|---|
|
|
|---|