Skip to content

fix(key): prevent stack overflow on cyclic key variable references - #415

Open
AdamMagued wants to merge 1 commit into
go-ini:mainfrom
AdamMagued:fix-issue-409
Open

AdamMagued wants to merge 1 commit into
go-ini:mainfrom
AdamMagued:fix-issue-409

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #409

Summary

  • Guard variable expansion in Key.String() against cyclic references via recursion cycle tracking.
  • Add unit tests for mutual, self-referencing, and multi-hop cyclic key references.

Verified via container sandbox test suite.

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>

This branch has not been deployed

No deployments
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.

Key.String() overflows the stack when two keys reference each other

1 participant