aboutsummaryrefslogtreecommitdiff
path: root/src/errors/errors.go
diff options
context:
space:
mode:
authorRoland Shoemaker <roland@golang.org>2023-05-24 10:53:47 -0700
committerGopher Robot <gobot@golang.org>2023-05-25 01:01:41 +0000
commit6f7824f7a4d62998b03f3ddc5c12938a9a247e85 (patch)
treec6aa1fcff648fbb3b025834cf95d4c7808c28f40 /src/errors/errors.go
parent20e08fe68cc13102046d8c4500a7f5257a9d2881 (diff)
downloadgo-6f7824f7a4d62998b03f3ddc5c12938a9a247e85.tar.xz
crypto/internal/bigmod: don't panic on NewModulusFromBig(0)
Return an error instead. Makes usages of NewModulusFromBig a bit more verbose, but better than returning nil or something and just moving the panic down the road. Fixes #60411 Change-Id: I10732c6ce56ccd9e4769281cea049dd4beb60a6e Reviewed-on: https://go-review.googlesource.com/c/go/+/498035 Auto-Submit: Roland Shoemaker <roland@golang.org> Reviewed-by: Filippo Valsorda <filippo@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Roland Shoemaker <roland@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
Diffstat (limited to 'src/errors/errors.go')
0 files changed, 0 insertions, 0 deletions