Skip to content

legends-captions v0.1.4

Choose a tag to compare

@avalonreset avalonreset released this 11 Nov 03:15
· 14 commits to main since this release

legends-captions v0.1.4

FFmpeg filtergraph injection hardening, wheel-safe path resolution, symlink and file-size bounds, and sdist completeness for legends-captions.

What Changed

  • Added escape_ffmpeg_ass_filter(), format_ffmpeg_ass_filtergraph(), and the legends-captions ffmpeg-filter --ass <path> CLI subcommand to safely escape Windows drive colons, backslashes, brackets, commas, semicolons, and single quotes ('\\'') inside FFmpeg libavfilter ass=filename='...' expressions while rejecting control characters and leading - option flags.
  • Hardened escape_ass() to normalize \r\n and \r, strip ASCII control characters, and escape \, {, and } before style wrapping, and validated ASS style names, font names, canvas dimensions, and finite non-negative timestamps (math.isfinite, parse_constant rejection of NaN/Infinity).
  • Made PROJECT_ROOT wheel-safe so installed wheel runs resolve relative outputs against the active working directory rather than <venv>/Lib, added ancestor-chain is_symlink() refusal and size caps (1 MiB config, 25 MiB input), and enforced fail-closed --overwrite semantics on render-ass.
  • Added MANIFEST.in so source distributions include all governance, recipe, router skill, and test files, removed private session UUID fallbacks from scripts/stage_*.py, and upgraded scripts/check_release.py.