Files
craft-libs/crates/proof/src/affix
NaxvogandClaude Opus 5.5 b732f2abc7 proof: cap .aff REP replacements at parse time (storytold/wordcraft#3655)
Both readers kept every REP line: an .aff with hundreds of thousands of
entries, or megabyte-long patterns and replacements, made each
suggestion round hang and allocate hundreds of MB. push_rep keeps at
most 4096 entries, drops patterns longer than MAX_LETTERS letters (no
suggester takes a longer word, so they never match) and replacements
longer than MAX_WORD_BYTES.

Ported from storytold/wordcraft#4632, which can't land now that
proofing lives here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 07:10:24 +01:00
..