Skip to content
Snippets Groups Projects
Commit 4c5d6ede authored by Dmitri Goutnik's avatar Dmitri Goutnik Committed by Gopher Robot
Browse files

syscall: add ptracePtr that accepts pointer arg as unsafe.Pointer

The existing ptrace wrapper accepts pointer argument as an uintptr which
often points to the memory allocated in Go. This violates unsafe.Pointer safety
rules.

Fixes #58387

Change-Id: Iab12122c495953f94ea00c2a61654a818a464205
Reviewed-on: https://go-review.googlesource.com/c/go/+/470299


TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Dmitri Goutnik <dgoutnik@gmail.com>
Reviewed-by: default avatarBryan Mills <bcmills@google.com>
Reviewed-by: default avatarIan Lance Taylor <iant@google.com>
Auto-Submit: Dmitri Goutnik <dgoutnik@gmail.com>
parent 6af9635f
Branches
Tags 1.2.0
No related merge requests found
Showing
with 148 additions and 15 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment