summaryrefslogtreecommitdiff
path: root/vendor/github.com/json-iterator/go/reflect.go
diff options
context:
space:
mode:
authordependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>2019-10-30 14:08:49 +0000
committerValentin Rothberg <rothberg@redhat.com>2019-10-30 15:17:10 +0100
commitd55734e69bcb645802b33ef703d336b89bbeefe1 (patch)
treecb7bd9eb71d4e049473398aff5554404ee16e5d8 /vendor/github.com/json-iterator/go/reflect.go
parente7540d0406c49b22de245246d16ebc6e1778df37 (diff)
downloadpodman-d55734e69bcb645802b33ef703d336b89bbeefe1.tar.gz
podman-d55734e69bcb645802b33ef703d336b89bbeefe1.tar.bz2
podman-d55734e69bcb645802b33ef703d336b89bbeefe1.zip
Bump github.com/json-iterator/go from 1.1.7 to 1.1.8
Bumps [github.com/json-iterator/go](https://github.com/json-iterator/go) from 1.1.7 to 1.1.8. - [Release notes](https://github.com/json-iterator/go/releases) - [Commits](https://github.com/json-iterator/go/compare/v1.1.7...1.1.8) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/github.com/json-iterator/go/reflect.go')
-rw-r--r--vendor/github.com/json-iterator/go/reflect.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/github.com/json-iterator/go/reflect.go b/vendor/github.com/json-iterator/go/reflect.go
index 4459e203f..74974ba74 100644
--- a/vendor/github.com/json-iterator/go/reflect.go
+++ b/vendor/github.com/json-iterator/go/reflect.go
@@ -60,6 +60,7 @@ func (b *ctx) append(prefix string) *ctx {
// ReadVal copy the underlying JSON into go interface, same as json.Unmarshal
func (iter *Iterator) ReadVal(obj interface{}) {
+ depth := iter.depth
cacheKey := reflect2.RTypeOf(obj)
decoder := iter.cfg.getDecoderFromCache(cacheKey)
if decoder == nil {
@@ -76,6 +77,10 @@ func (iter *Iterator) ReadVal(obj interface{}) {
return
}
decoder.Decode(ptr, iter)
+ if iter.depth != depth {
+ iter.ReportError("ReadVal", "unexpected mismatched nesting")
+ return
+ }
}
// WriteVal copy the go interface into underlying JSON, same as json.Marshal