diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-07 20:14:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-07 20:14:59 +0200 |
commit | 08fa3d511f2b96613bbbe76e517f2c9288e5bf56 (patch) | |
tree | 0210f08935553ea30dd17d4f19086de4b5fa880c /vendor/github.com/gogo/protobuf/proto/encode.go | |
parent | 9d0d9df6a1973ce9982071601fbdca68c93c6d07 (diff) | |
parent | 42fcdbf1a85c8e23ccc25a0e7e66b3a51b8f11dd (diff) | |
download | podman-08fa3d511f2b96613bbbe76e517f2c9288e5bf56.tar.gz podman-08fa3d511f2b96613bbbe76e517f2c9288e5bf56.tar.bz2 podman-08fa3d511f2b96613bbbe76e517f2c9288e5bf56.zip |
Merge pull request #5744 from vrothberg/update-image
vendor c/image v5.4.2
Diffstat (limited to 'vendor/github.com/gogo/protobuf/proto/encode.go')
-rw-r--r-- | vendor/github.com/gogo/protobuf/proto/encode.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vendor/github.com/gogo/protobuf/proto/encode.go b/vendor/github.com/gogo/protobuf/proto/encode.go index 3abfed2cf..9581ccd30 100644 --- a/vendor/github.com/gogo/protobuf/proto/encode.go +++ b/vendor/github.com/gogo/protobuf/proto/encode.go @@ -189,6 +189,8 @@ type Marshaler interface { // prefixed by a varint-encoded length. func (p *Buffer) EncodeMessage(pb Message) error { siz := Size(pb) + sizVar := SizeVarint(uint64(siz)) + p.grow(siz + sizVar) p.EncodeVarint(uint64(siz)) return p.Marshal(pb) } |