]> Cypherpunks repositories - gostls13.git/commit
internal/syscall/windows: use unsafe.Pointer instead of uintptr
authorqmuntal <quimmuntal@gmail.com>
Fri, 4 Apr 2025 10:16:09 +0000 (12:16 +0200)
committerGopher Robot <gobot@golang.org>
Fri, 4 Apr 2025 17:40:19 +0000 (10:40 -0700)
commit6839e71d82e0f2c93e043820db6c0238a65ae0fa
treecf2993697ec99ccab34f242842ebaea36af0908e
parent7a427143b6ff296125359084a8959bf0c9d23e78
internal/syscall/windows: use unsafe.Pointer instead of uintptr

Some functions accept a uintptr when they should accept an
unsafe.Pointer, else the compiler won't know that the pointer should
be kept alive across the call, potentially causing undefined behavior.

Fixes #73156 (potentially)

Change-Id: I29c847eb8ffbb785fabf217e9f3718d10cfb5047
Reviewed-on: https://go-review.googlesource.com/c/go/+/662855
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
src/internal/syscall/windows/at_windows.go
src/internal/syscall/windows/exec_windows_test.go
src/internal/syscall/windows/security_windows.go
src/internal/syscall/windows/syscall_windows.go
src/internal/syscall/windows/zsyscall_windows.go
src/net/interface_windows.go
src/os/root_windows.go
src/runtime/runtime-seh_windows_test.go