mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-11-28 22:58:05 +00:00
read_docx moved from ElementTree to expat: ElementTree cannot refuse a DTD, and 739 bytes of nested entities expanded to a megabyte of text (measured x1353 at six levels, exponential beyond). A legitimate .docx carries no DTD, so it is rejected outright. Same surface, second vector: 0.6 MB of archive expanded to 208 MB of XML (ratio 330). Unpacking word/document.xml is now capped at 64 MB. Behaviour on legitimate files is unchanged - byte-for-byte identical to the previous implementation on five real .docx files and six synthetic cases (tables, nested w:p, CDATA, split runs). The stdlib-only contract holds; defusedxml was not needed. |
||
|---|---|---|
| .. | ||
| batch_prepare.py | ||
| build_provenance.py | ||
| calibrate_threshold.py | ||
| check_support.py | ||
| compare_to_gold.py | ||
| consensus.py | ||
| coverage_gaps.py | ||
| extract_claims.py | ||
| extract_nuggets.py | ||
| make_adjudication.py | ||
| number_lines.py | ||
| render_board.py | ||
| route.py | ||
| score_insights.py | ||
| verify_quotes.py | ||