aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorRoland Shoemaker <roland@golang.org>2026-03-27 08:40:08 -0700
committerGopher Robot <gobot@golang.org>2026-03-27 13:05:00 -0700
commit5a0e0838232d7aa7c82b5a33d89458c01ccd4ffc (patch)
treec7aa332a4ec9f22087e127e704dda5049fdcee15 /src/runtime
parent90adad7b2565d456bf5e120a59a07ff31f3ada45 (diff)
downloadgo-5a0e0838232d7aa7c82b5a33d89458c01ccd4ffc.tar.xz
crypto: disallow RegisterHash with hash value 0
We already prevent registering hash values larger than the number of hashes we actually have, but for some reason we don't prevent registering hash value 0, which is the sentinel value we typically use for "no hash". This change adds a check to prevent registering hash value 0. Fixes #60548 Change-Id: Ifd6edffb22b268ef282eae1b2ae4cc0ce748776c Reviewed-on: https://go-review.googlesource.com/c/go/+/760280 Reviewed-by: Filippo Valsorda <filippo@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Diffstat (limited to 'src/runtime')
0 files changed, 0 insertions, 0 deletions