• Ian Lance Taylor's avatar
    runtime: mark cgo callback results as written for msan · 8f3f2cca
    Ian Lance Taylor authored
    This is a fix for the -msan option when using cgo callbacks.  A cgo
    callback works by writing out C code that puts a struct on the stack and
    passes the address of that struct into Go.  The result parameters are
    fields of the struct.  The Go code will write to the result parameters,
    but the Go code thinks it is just writing into the Go stack, and
    therefore won't call msanwrite.  This CL adds a call to msanwrite in the
    cgo callback code so that the C knows that results were written.
    
    Change-Id: I80438dbd4561502bdee97fad3f02893a06880ee1
    Reviewed-on: https://go-review.googlesource.com/16611Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    8f3f2cca
Name
Last commit
Last update
..
errors Loading commit data...
gmp Loading commit data...
life Loading commit data...
nocgo Loading commit data...
stdio Loading commit data...
test Loading commit data...
testasan Loading commit data...
testcarchive Loading commit data...
testcshared Loading commit data...
testgodefs Loading commit data...
testsanitizers Loading commit data...
testshared Loading commit data...
testsigfwd Loading commit data...
testso Loading commit data...
testsovar Loading commit data...
testtls Loading commit data...