Skip to content

legends-jev v0.2.4

Choose a tag to compare

@avalonreset avalonreset released this 11 Nov 03:34
· 13 commits to main since this release

v0.2.4 - 2026-11-10

  • Image Decompression & Pixel Ceiling Hardening (legends_jev/core.py, legends_jev/provider.py): Enforced a 50 MiB file size cap, 64-megapixel (64,000,000 pixel) and 16,384 px dimension limits in parse_image_header(), bounded zlib.decompressobj().decompress(raw, max_length) in _decode_simple_png_rgb(), and Pillow Image.MAX_IMAGE_PIXELS + post-open width * height checks in _normalize_image_for_vision() with clean DecompressionBombError/OSError handling.
  • Credential Redaction & Transport Hardening (legends_jev/provider.py): Added control-character validation on TYPESAFE_API_KEY, caught http.client.InvalidHeader/HTTPException without echoing header values, and enforced _NoRedirectHandler with ProxyHandler({}) and TLS 1.2+ on authenticated API calls.
  • Ancestor Symlink & Overwrite Guards (legends_jev/cli.py, legends_jev/core.py): Added ancestor-chain symlink refusal (with macOS /var//tmp//etc system symlink exemptions), --overwrite protection on --output, and control-character/delimiter sanitization in ocr_request().
  • Packaging & Release Gate (pyproject.toml, README.md, docs/AGENT-RECIPE.md, scripts/check_release.py): Fixed documentation links, achieved 1:1 CLI flag parity in docs/AGENT-RECIPE.md, added explicit license-files, and upgraded scripts/check_release.py to build and verify .whl and .tar.gz distributions.