]> Cypherpunks.ru repositories - gostls13.git/commit
math/big: check for excessive exponents in Rat.SetString
authorRobert Griesemer <gri@golang.org>
Sun, 2 May 2021 18:27:03 +0000 (11:27 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 6 May 2021 16:00:55 +0000 (16:00 +0000)
commit6c591f79b0b5327549bd4e94970f7a279efb4ab0
treefd95a4cbd3472d14c6404f0d541d9d16f7b69cfb
parent54e20b505d370210f05ab567c0d19e9bb51db8a3
math/big: check for excessive exponents in Rat.SetString

Found by oss-fuzz https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=33284

Fixes #45910.

Change-Id: I61e7b04dbd80343420b57eede439e361c0f7b79c
Reviewed-on: https://go-review.googlesource.com/c/go/+/316149
Trust: Robert Griesemer <gri@golang.org>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
src/math/big/ratconv.go
src/math/big/ratconv_test.go