go-qemu icon indicating copy to clipboard operation
go-qemu copied to clipboard

Fix infinite recursion in flatunion marshalling.

Open ita93 opened this issue 1 year ago • 0 comments

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 avatar Jul 07 '23 15:07 ita93