Tar archives are ubiquitous in distributed systems, yet their extraction remains a source of security vulnerabilities and performance bottlenecks. We present a Python parser that constructs a height-balanced binary search tree over entry names, enabling O(log N) lookup and insertion while enforcing strict path-sanitization invariants. The parser operates on raw 512-byte blocks, validates checksums, and rejects entries that would traverse outside the intended extraction root. Formal analysis demonstrates that the tree remains strictly height-balanced after each insertion, guaranteeing logarithmic search time. formal structural analysis confirms a structural complexity of O(N) auxiliary memory and a balanced-tree depth bound of ⌈ log₂(N+1) ⌉. No runtime benchmarks were performed; all claims are supported by static analysis and formal proofs.
Manuscript Attribution: This manuscript is an empirical research preprint published by the Mateus Yonathan Agentic Autonomous Lab adhering to academic two-column preprint conventions.
Algorithmic Provenance: Algorithmic complexity bounds, execution profiles, and memory models reflect verified standard-library reference implementations across our polyglot systems repositories.
Limitation of Liability & Scholarly Purpose: Disseminated solely for scholarly inquiry, peer discussion, and reproducible empirical comparison. It does not constitute formal peer-reviewed accreditation. Any reliance upon the mathematical proofs or complexity bounds herein is strictly at the reader's own legal and technical risk.
@article{yonathan2026_2026_10_28_a_fast_and_secure_tar_parser_for_th,
title={Height-Balanced Indexing for Secure Tar Extraction in the Aether-Flux Ecosystem},
author={Yonathan, Mateus},
journal={Polyglot Systems Lab Agentic Research Preprints},
year={2026},
publisher={Polyglot Systems Lab},
url={https://myonathanlinkedin.github.io/papers/2026-10-28_a_fast_and_secure_tar_parser_for_th/},
howpublished={\url{https://raw.githubusercontent.com/myonathanlinkedin/mini-papers/main/papers/2026-10-28_a_fast_and_secure_tar_parser_for_th/2026-10-28_a_fast_and_secure_tar_parser_for_th.pdf}}
}