Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix infinite recursion in flatunion marshalling. #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ita93
Copy link

@ita93 ita93 commented Jul 7, 2023

The current implementation passes the value of Blockdevoptions as a field directly to the intermediate struct, causing the Marshal() function to be called repeatedly and resulting in a stack overflow. Add an intermediate type alias to fix this issue.

Fix #190

@ita93 ita93 requested a review from a team as a code owner July 7, 2023 15:38
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.

Marshaling any discriminated union (flat union) into JSON overflows the stack
1 participant