cmd/cgo: false msan reports when C function returns struct on stack #26209
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
When using
-msan
with the C compiler option-fsanitize=memory
, when a C function returns a struct on the Go stack, the memory sanitizer code can mark a portion of the Go stack as uninitialized. If that portion of the Go stack is later passed tomsanread
, perhaps in a different function, the memory sanitizer will report an error.Test case, which shows the problem when built with
go build -msan
.The text was updated successfully, but these errors were encountered: