diff options
| author | Filippo Valsorda <filippo@golang.org> | 2024-05-20 11:07:28 +0200 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-05-22 14:20:03 +0000 |
| commit | 1d3d7d395e6081c0cdc437c56c4c0318b70fb685 (patch) | |
| tree | 43e06dc900a07f12e9440c71c7b534faf22f24d0 /src/encoding/binary | |
| parent | 3128ebfad748b5f160faa8cb8981bd0eaf6e3227 (diff) | |
| download | go-1d3d7d395e6081c0cdc437c56c4c0318b70fb685.tar.xz | |
crypto/tls: ensure GODEBUGs are initialized
IncNonDefault panics if Value was not called. That's too much DoS risk
in crypto/tls, when the call to Value is distant from the call to
IncNonDefault (see #65991). Value is cheap, though, so we can just call
it before each isolated IncNonDefault.
Change-Id: I6dbed345381e60e029b0a5ef2232e846aa089736
Reviewed-on: https://go-review.googlesource.com/c/go/+/586755
Reviewed-by: Roland Shoemaker <roland@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/encoding/binary')
0 files changed, 0 insertions, 0 deletions
