From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:LZNT1" |
|---|
| claim | "LZNT1: 16-bit LE chunk header with size-1 in bits 0-11 and compressed flag in bit 15, header 0 ends the stream; chunks decode to at most 0x1000 bytes; within a chunk each flag byte covers 8 items (LSB first); a match token has displacement_bits growing from 4 to 12 as the output position in the chunk passes powers of two (the largest d in 12..5 with 2^(d-1) < position), length = low (16-d) bits + 3, displacement = high d bits + 1." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:LZNT1" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "RtlDecompressBuffer with COMPRESSION_FORMAT_LZNT1" |
|---|
| effect | "chunked LZ77 as described" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "lznt1_decompress and lznt1_decompress_chunk (LGPL); read from raw.githubusercontent.com master" |
|---|
| repo | "https://github.com/wine-mirror/wine" |
|---|
| path | "dlls/ntdll/rtl.c" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Chunk and match coding" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T16:17:40.039Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-18T19:54:56.149Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read wine-mirror/wine dlls/ntdll/rtl.c @ 7298a818b7, lznt1_decompress_chunk (lines 1152-1206): flags byte LSB first with 8 items, displacement_bits loop from 12 down to 5 breaking when (1 << (bits-1)) < output position, length = low (16-bits) bits + 3, displacement = high bits + 1; lznt1_decompress: size = (header & 0xfff) + 1, 0x8000 = compressed, zero header ends. Source read only, nothing run." |
|---|
|
|
|---|