Files
designcraft/crates/engine/src
midasmatterhorn e45bb864ed math: cap LaTeX expression nesting depth so hostile input can't overflow the stack
`math.svg` and `math.insert` take an unbounded `latex` string, and the parser's
arg/atom/list/list_until_right recursive descent recursed once per group: 100k
nested braces, `\frac`s or `\left(`s overflowed the stack (an abort the command
guard cannot catch). Past MAX_NESTING (256) groups stop descending, so the rest
of the input is consumed iteratively.

Regression test: 100k nested braces, `\frac`s and `\left(`s typeset to an SVG;
the old code aborted with a stack overflow.
2026-10-14 22:52:56 +03:00
..
2026-10-14 12:56:09 -04:00
2026-10-12 09:19:36 -06:00
2026-10-04 12:43:33 -04:00
2026-10-14 12:56:09 -04:00
2026-10-14 12:40:07 -04:00