Commit 231371a
committed
Apply the recursion limit to the parser instead of the printer.
Raphael Salas found more stack overflows involving very large symbols that
failed during parsing, before even getting to the printer. The same recursion
limiting strategy used in the printer can be applied to fix these. In fact,
when this is done, the recursion limiter in the printer is no longer needed,
because the printer won't recurse beyond what the parser produces.
The failing cases are added as unit tests.1 parent 8282f4b commit 231371a
1 file changed
+573
-23
lines changed
0 commit comments