Files
reverse-engineering-anything/docs
morluto 943a1f329e fix(uefi): decode LZMA sections through one shared LZMA1 owner (#14918)
* fix(uefi): decode LZMA sections through one shared LZMA1 owner

UEFI LZMA custom sections whose header declared a dictionary above 64 MiB
were refused as an output limit even when their output was tiny, because the
worker compared the dictionary with the output budget and handed it to
lzma-purejs, which allocates a window of that size. EDK II's one-call
LzmaDecode uses its output buffer as the dictionary, so a valid stream never
needs more window than its output.

src/compression/Lzma1.ts now owns LZMA1 for UEFI and UnityFS: the
LZMA-Alone header and LZMA1 property bounds (lc 0-8, lp 0-4, pb 0-4), the
range coder lead-in, a decoder window of max(4 KiB, min(dictionary, output
bound)), bounded output, and the verdict on a stream. Lzma1Header.ts reads the
header fields with BinaryReader at the host boundary. The UEFI worker keeps
its framing, x86 branch filter and reply protocol; a corrupt stream or invalid
properties are now reported as malformed rather than as a decoder fault. The
UnityFS worker thread loads the same module instead of an inline decoder.

Closes #14917

* fix(compression): leave LZMA1 host faults to their host

decodeLzma1Alone reported every exception from the codec as a malformed stream, so an allocation failure or codec defect inside the decoding host looked like corrupt input, and the codec's own verdict text was lost. Only lzma-purejs's verdict literals ("Error in data stream", "Incorrect stream properties") are now a malformed verdict; anything else is rethrown for the host to classify (UEFI reports it as a decoder fault, the UnityFS worker as a runtime failure).
2026-11-27 18:48:32 +00:00
..
…
…
…
…

Documentation directory

Find an installation step, investigation guide, or contributor reference by task. The REA website has worked examples and product pages.

Getting started

Desktop applications

Agent environments

Native binaries

JavaScript and Electron

Browser and captured websites

Android applications

Apple applications

.NET assemblies

Firmware

HarmonyOS packages

Packages and metadata

WebAssembly

EVM contracts

Databases and recorded packets

Process capture and instrumentation

Provider setup and formats

Contracts and evidence

Development and verification

Release migrations

Signal recordings

Generated files and release records

Path Owner and update command
public/product-catalog.json Ignored contract projection; npm run docs:generate
verification/managed-conformance-*.json Ignored managed conformance projections; npm run evidence:generate
error-contract.schema.json Tracked schema from contracts; npm run docs:error-schema
user-visible-errors.csv Generated error code and category per domain and provider-owned error case; npm run docs:error-schema
releases/<version>.contributions.json Durable release contribution record; follow the release guide

Regenerate catalogs and Evidence projections from their canonical source. Release records preserve the exact commit messages and references for each release. Guides share authored images in assets/.