Skip to content

Avoid segfault with deep nested documents - #260

Merged
philss merged 2 commits into
masterfrom
ps-fix-stack-overflow-w-recursion
Oct 29, 2026
Merged

philss merged 2 commits into
masterfrom
ps-fix-stack-overflow-w-recursion

Conversation

@philss

@philss philss commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

The previous implementation segfaults with stack overflow.

The fix is using the same approach (and was heavily inspired) by the code that existed before v0.18.

Closes #259

@philss

philss commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

Just as reference, the original implementation was made in f674386

@philss
philss merged commit 2adbd76 into master Oct 29, 2026
3 checks passed
@philss
philss deleted the ps-fix-stack-overflow-w-recursion branch October 29, 2026 15:32
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.

Deep nesting causes segfaults

1 participant