Vito Sansevero
8e2578ceb6
fix: bound resolve_text on diamond chains with memoisation, depth and length caps
...
A per-path visited set alone makes a chain of diamonds (node i reads node
i+1 on both inputs) exponential in depth. Each node's text is now
memoised so it is expanded once, every expansion is charged to the shared
MAX_VISITS budget, chains deeper than MAX_DEPTH (64) are unknowable so
recursion stays bounded, and text longer than MAX_TEXT_LENGTH (100k) is
unknowable so StringConcatenate doubling cannot exhaust memory.
2026-10-08 18:01:34 -07:00
..
2026-10-08 18:01:34 -07:00
2026-02-07 08:30:09 -08:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-07 13:52:09 -07:00
2026-10-08 18:01:34 -07:00
2026-02-07 08:30:09 -08:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-03-18 07:29:58 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-02-07 12:36:11 -08:00
2026-10-08 18:01:34 -07:00
2026-10-07 13:52:09 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-04-10 12:49:59 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00
2026-10-08 18:01:34 -07:00