mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
fix: reduce iteration limit to prevent stack overflow in test
This commit is contained in:
parent
25b5249823
commit
ef9adf4618
@ -672,7 +672,7 @@ fn visit_grouping_rules<'a>(
|
||||
|
||||
finish_innermost_grouping(s)?;
|
||||
i += 1;
|
||||
if i > 4096 {
|
||||
if i > 512 {
|
||||
// It seems like this case is only hit when there is a cycle between
|
||||
// a show rule and a grouping rule. The show rule produces content
|
||||
// that is matched by a grouping rule, which is then again processed
|
||||
|
Loading…
x
Reference in New Issue
Block a user