Skip to content

Conversation

@limbonaut
Copy link
Collaborator

@limbonaut limbonaut commented Aug 1, 2025

This PR fixes a bug that could cause stack overflow when converting Variant in the NativeSDK. This can happen when there are circular references in nested arrays and/or dictionaries in GDScript.

@limbonaut limbonaut added the Bug Something isn't working label Aug 1, 2025
@limbonaut limbonaut changed the title Fix/prevent stack overflow in variant conversion fix: Prevent stack overflow in variant conversion Aug 1, 2025
Copy link
Collaborator

@jpnurmi jpnurmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: 32 could be extracted as a constant

@limbonaut limbonaut merged commit 3e2dc24 into main Aug 1, 2025
45 checks passed
@limbonaut limbonaut deleted the fix/prevent-stack-overflow-in-variant-conversion branch August 1, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants