]> Cypherpunks repositories - gostls13.git/commit
net: check for NUL bytes in strings passed to C functions
authorIan Lance Taylor <iant@golang.org>
Tue, 18 Apr 2023 21:48:36 +0000 (14:48 -0700)
committerGopher Robot <gobot@golang.org>
Wed, 19 Apr 2023 00:29:39 +0000 (00:29 +0000)
commit7e66a8ad400792bcf8049313a3142496ce5fd9a9
tree2e59956200e1b1889500c377e5b343ee9d145d37
parent6a5f35047f8c69301bc05ee4359bb20bd71dcad9
net: check for NUL bytes in strings passed to C functions

Use syscall.BytePtrFromString and syscall.ByteSliceFromString.

Change-Id: I9409ecd93aaca82390bf3f34be56ec354148a241
Reviewed-on: https://go-review.googlesource.com/c/go/+/486015
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
src/net/cgo_unix.go
src/net/cgo_unix_cgo.go
src/net/cgo_unix_syscall.go