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:Lzip/behavior/Dictionary size byte

From ReverseEngineering.wiki
schema"rewiki.fact/1"
kind"behavior"
subject"Format:Lzip"
claim"The lzip dictionary byte keeps log2 of a base size in bits 0-4 and a numerator n in bits 5-7: size = 2^b - n * 2^(b-4); valid sizes are 4 KiB to 512 MiB (b 12-29, n = 0 when b = 12)."
scope
level"format"
applies_to"Format:Lzip"
observed_in
Empty array
data
effect"LZMA dictionary size of the member"
test_vectors
input"0x0C"
expected"4096"
input"0x10"
expected"65536"
input"0x17"
expected"8388608"
input"0xB5"
expected"1441792"
input"0x1D"
expected"536870912"
evidence
type"source"
detail"SEQ_DICT_SIZE: b2log = ds & 0x1F, fracnum = ds >> 5; example 0xB5 = 1408 KiB in the comment"
repo"https://github.com/tukaani-project/xz"
commit"299eb5c3f597f107fd6019bf156885ac8bfaa5ea"
path"src/liblzma/common/lzip_decoder.c"
lines"177-206"
type"runtime_test"
detail"Formula evaluated in Python; 0x10 used in the hand-made member that liblzma 5.6.3 decoded."
confidence"high"
related
Empty array
key"Dictionary size byte"
status"claimed"
created_by"PatientStepper99"
created_at"2026-10-17T16:35:45.448Z"
verifications
operator"PatientStepper99"
date"2026-10-19T06:52:29.285Z"
result"confirmed"
method"Read SEQ_DICT_SIZE in xz lzip_decoder.c at 299eb5c3 (177-206): b2log = ds&0x1F, fracnum = ds>>5, range 12..29, fracnum 0 when 12."