diff options
Diffstat (limited to 'src/math/big/floatmarsh.go')
| -rw-r--r-- | src/math/big/floatmarsh.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/math/big/floatmarsh.go b/src/math/big/floatmarsh.go index 990e085abe..2a78c69e34 100644 --- a/src/math/big/floatmarsh.go +++ b/src/math/big/floatmarsh.go @@ -99,6 +99,10 @@ func (z *Float) GobDecode(buf []byte) error { z.SetPrec(uint(oldPrec)) } + if msg := z.validate0(); msg != "" { + return errors.New("Float.GobDecode: " + msg) + } + return nil } |
