Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Auto-Submit: Damien Neil <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
- Loading branch information