commit | 0526b49b345664cadb8ea67dd4b7c02964c55b3a | [log] [tgz] |
---|---|---|
author | Damien Neil <dneil@google.com> | Mon Oct 30 11:01:23 2023 -0700 |
committer | Gopher Robot <gobot@golang.org> | Mon Oct 30 20:00:15 2023 +0000 |
tree | ad19608f804046a81816b2c898f4f6243523691e | |
parent | 6d267b1f96339103f3a322266f022b21a1d0688d [diff] |
quic: fix data race caused by aliased DCID The initServer function was retaining a reference to a []byte that aliases a packet buffer, which is subsequently recycled. Make a copy of the data before retaining it. Fixes golang/go#63783 Change-Id: I3dbb0cdfd78681014dec97ff9909ff6c7dbf82ba Reviewed-on: https://go-review.googlesource.com/c/net/+/538615 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com>
This repository holds supplementary Go networking libraries.
The easiest way to install is to run go get -u golang.org/x/net
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/net
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html. The main issue tracker for the net repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/net:” in the subject line, so it is easy to find.