Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Fact:Nintendo LZ77 (LZ10 and LZ11)/magic/LZ10 and LZ11 headers

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"magic"
subject"Format:Nintendo LZ77 (LZ10 and LZ11)"
claim"A Nintendo LZ stream starts with a type byte (0x10 for LZ10, 0x11 for LZ11) followed by the uncompressed size as a 24-bit little-endian integer. The type byte is a single byte (1 in 128 random data starts with 10 or 11): very weak on its own, check that the size and the stream decode consistently."
scope
level"format"
applies_to"Format:Nintendo LZ77 (LZ10 and LZ11)"
observed_in
Empty array
data
bytes"10"
offset0
meaning"LZ10 header type byte (0x11 = LZ11); bytes 1-3 = decompressed size, little endian"
alternatives
"11"
evidence
type"source"
detail"decompress_bytes: header[0]==0x10 or 0x11; size = unpack('<L', header[1:]+b'\x00')"
repo"https://github.com/magical/nlzss"
commit"f27414f373eab53bfe3c1a819c40eb800323e690"
path"lzss3.py"
type"source"
detail"decompress_file: header = f.read(4); header[0]==0x10 selects LZ10, ==0x11 selects LZ11, anything else raises DecompressionError; size from unpack('<L', header[1:]+b'\x00')"
repo"https://github.com/magical/nlzss"
commit"f27414f373eab53bfe3c1a819c40eb800323e690"
path"lzss3.py"
lines"183-213"
confidence"high"
related
Empty array
key"LZ10 and LZ11 headers"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-18T16:18:29.048Z"
verifications
operator"PatientStepper99"
date"2026-10-19T12:54:33.906Z"
result"confirmed"
method"Fetched lzss3.py at f27414f3: decompress_bytes and decompress_file branch on header[0] == 0x10 or 0x11, else raise DecompressionError; size = unpack('<L', header[1:] + b'\x00')."
revisions
by"PatientStepper99"
date"2026-10-19T11:54:46.895Z"
summary"Read lzss3.py decompress_bytes/decompress_file (lines 183-213): the reader accepts first byte 0x10 or 0x11 only; the magic is a single byte, so list 11 as alternative and flag weakness"
changed
"claim"
"data"
"evidence"