Skip to content

Detect circular crossref/xdata inheritance - #114

Open
jassielof wants to merge 3 commits into
typst:mainfrom
jassielof:selfref
Open

Detect circular crossref/xdata inheritance#114
jassielof wants to merge 3 commits into
typst:mainfrom
jassielof:selfref

Conversation

@jassielof

Copy link
Copy Markdown
Contributor

Fixes #92.

The change helps to detect circular crossref and xdata inheritance, it also returns a parse error instead of recursing until a stack overflow.

On tests, I added tests covering in/direct cycles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stackoverflow crash on parsing

1 participant