]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: fix unaligned arguments typedmemmove crash on iOS
authorTim Cooijmans <timcooijmans@gmail.com>
Tue, 30 Sep 2025 21:53:11 +0000 (21:53 +0000)
committert hepudds <thepudds1460@gmail.com>
Fri, 3 Oct 2025 11:04:57 +0000 (04:04 -0700)
commitd5b950399de01a0e28eeb48d2c8474db4aad0e8a
tree3545be5f87c764d5bcc68326c6a5a3c5d84fe96d
parent53845004d647e16b3de7c74e50cffaca77e028e9
cmd/cgo: fix unaligned arguments typedmemmove crash on iOS

Irregularly typedmemmove and bulkBarrierPreWrite crashes on unaligned
arguments. By aligning the arguments this is fixed.

Fixes #46893

Change-Id: I7beb9fdc31053fcb71bee6c6cb906dea31718c56
GitHub-Last-Rev: 46ae8b96889644aab60ea4284cf447a740354c6a
GitHub-Pull-Request: golang/go#74868
Reviewed-on: https://go-review.googlesource.com/c/go/+/692935
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/cgo/internal/testout/out_test.go [new file with mode: 0644]
src/cmd/cgo/internal/testout/testdata/aligned.go [new file with mode: 0644]
src/cmd/cgo/out.go