aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/json-iterator/go/iter_float.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-04-28 08:32:27 -0400
committerGitHub <noreply@github.com>2021-04-28 08:32:27 -0400
commit4ca34fce08ffa9e29d0719e3e29383e9ffdb1572 (patch)
treefc1e742b9b32e4e800910a14343e2e1cb81ca616 /vendor/github.com/json-iterator/go/iter_float.go
parent99e5a76f09645362eb781050f10f1ad19db312a7 (diff)
parent41e8a0af6ae672072d426f118fd4cd24c4569da1 (diff)
downloadpodman-4ca34fce08ffa9e29d0719e3e29383e9ffdb1572.tar.gz
podman-4ca34fce08ffa9e29d0719e3e29383e9ffdb1572.tar.bz2
podman-4ca34fce08ffa9e29d0719e3e29383e9ffdb1572.zip
Merge pull request #10162 from containers/dependabot/go_modules/github.com/json-iterator/go-1.1.11
Bump github.com/json-iterator/go from 1.1.10 to 1.1.11
Diffstat (limited to 'vendor/github.com/json-iterator/go/iter_float.go')
-rw-r--r--vendor/github.com/json-iterator/go/iter_float.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/json-iterator/go/iter_float.go b/vendor/github.com/json-iterator/go/iter_float.go
index b9754638e..8a3d8b6fb 100644
--- a/vendor/github.com/json-iterator/go/iter_float.go
+++ b/vendor/github.com/json-iterator/go/iter_float.go
@@ -288,6 +288,9 @@ non_decimal_loop:
return iter.readFloat64SlowPath()
}
value = (value << 3) + (value << 1) + uint64(ind)
+ if value > maxFloat64 {
+ return iter.readFloat64SlowPath()
+ }
}
}
return iter.readFloat64SlowPath()