diff options
| author | Kir Kolyshkin <kolyshkin@gmail.com> | 2024-05-23 14:12:10 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-05-24 03:44:11 +0000 |
| commit | 35ef4a9f330fdff870ff637558ec2fd03a93fd9c (patch) | |
| tree | 91d3ccad8345daabc00d8b3335cc11f88bb36338 /src/errors | |
| parent | 2fe2e4d593aaa01ca00ad861808846a2b3328b05 (diff) | |
| download | go-35ef4a9f330fdff870ff637558ec2fd03a93fd9c.tar.xz | |
runtime: x_cgo_getstackbound: initialize pthread attr
In glibc versions older than 2.32 (before commit 4721f95058),
pthread_getattr_np does not always initialize the `attr` argument,
and when it fails, it results in a NULL pointer dereference in
pthread_attr_destroy down the road.
This is the simplest way to avoid this, and an alternative to CL 585019.
Updates #65625.
Change-Id: If490fd37020b03eb084ebbdbf9ae0248916426d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/587919
Auto-Submit: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/errors')
0 files changed, 0 insertions, 0 deletions
