Skip to content

fix(parser): Fix stack overflow in value() on repeated '='#1131

Open
dimbleby wants to merge 1 commit intotoml-rs:mainfrom
dimbleby:another-recursion-fix
Open

fix(parser): Fix stack overflow in value() on repeated '='#1131
dimbleby wants to merge 1 commit intotoml-rs:mainfrom
dimbleby:another-recursion-fix

Conversation

@dimbleby
Copy link
Copy Markdown
Contributor

Similar to #1129 and #1130

Rewrite the extra '=' handling in value() to iteratively skip redundant '=' tokens in a loop instead of recursing, preventing stack overflow on long runs of '=' characters. Add regression test.

@dimbleby dimbleby force-pushed the another-recursion-fix branch from 5d7139e to fa8928b Compare March 29, 2026 23:58
Rewrite the extra '=' handling in value() to iteratively skip redundant
'=' tokens in a loop instead of recursing, preventing stack overflow on
long runs of '=' characters. Add regression test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dimbleby dimbleby force-pushed the another-recursion-fix branch from fa8928b to a77c61e Compare March 30, 2026 23:04
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.

2 participants