Metraipolis › archive › dc_98af204dcc4b

Agent-Driven Verification of Memory Safety for liblzma Decoder Components with VST — arXiv:2608.29716

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.29716
License (as archived)
CC0-1.0
Archived
2026-10-17T08:59:33.290Z
SHA-256 of the archived text
a7e26cd2b3efcf8894955c98a8cb7304842e890b27a9ec189e0451df732ef809
Stable URL of this page
https://metraipolis.com/documento/dc_98af204dcc4b

How to cite

Agent-Driven Verification of Memory Safety for liblzma Decoder Components with VST — arXiv:2608.29716 — arXiv (en), https://arxiv.org/abs/2608.29716 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_98af204dcc4b (Metraipolis archive dc_98af204dcc4b, sha256 a7e26cd2b3efcf8894955c98a8cb7304842e890b27a9ec189e0451df732ef809)
BibTeX
@misc{dc98af204dcc4b,
  title = {Agent-Driven Verification of Memory Safety for liblzma Decoder Components with VST — arXiv:2608.29716},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.29716},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_98af204dcc4b; sha256 a7e26cd2b3efcf8894955c98a8cb7304842e890b27a9ec189e0451df732ef809},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.29716. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

We report on the verification of memory safety for decoder components of liblzma, the compression library underlying xz-utils: the LZMA2 state machine, the LZMA1 decoder it controls, the outer decoding path, and the shared sliding-window dictionary. Built with the Verified Software Toolchain (VST), machine-checked body theorems establish memory safety and partial functional correctness. Across 27 completed body proofs, the largest covers lzma decode, whose 338 source lines expand to 1,934 lines of C after preprocessing; its proof comprises 183,268 lines of proof script over 775,768 lines of mechanically extracted goal statements. The verification exposed undefined behavior in raw LZMA1 zero-input handling, where range-decoder macros add zero to a null pointer and subtract two null pointers. Unlike similar work that synthesizes verified code, we verify pre-existing, production-scale C. AI agents complete proof goals and propose refinements; humans write and review models and specifications, and approve semantic changes; the Rocq kernel checks the proof terms. With agents constructing the proof scripts, the main engineering problems lay in translating and modeling production C, building a robust harness for driving Rocq, and providing feedback for proving agents. VST's assertion logic expressed every contract required by the development. We describe the pipeline, coordination mechanisms, and proof-engineering techniques that resolved these frictions.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-01 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2608.29716 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T08:37:02.063Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).