syscall: introduce IoctlPtr for exec_unix tests #58609
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
This is a followup for #44834. Similar issue is present in
exec_unix_test.go
, which calls sysctl.Ioctl() and passes Go pointers as uintptr, violating unsafe.Pointer safety rules. As sysctl.Ioctl() is exported solely for tests (and called only by exec_unix_test.go), replace it with sysctl.IoctlPtr() that accepts arg argument as unsafe.Pointer.The text was updated successfully, but these errors were encountered: