summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/zstd/bytebuf.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-11-22 16:21:19 +0100
committerGitHub <noreply@github.com>2019-11-22 16:21:19 +0100
commite4b805441b84017bdd313d412a4138e4fb41f3d3 (patch)
treebf4088f29a62893822c2696a43f2bebac52d8168 /vendor/github.com/klauspost/compress/zstd/bytebuf.go
parent22e7d7d86f945620bbc1bdd3aa9c4a9d3248fa1f (diff)
parent866391bb574f885549f5cf3cec965dc224cb84b3 (diff)
downloadpodman-e4b805441b84017bdd313d412a4138e4fb41f3d3.tar.gz
podman-e4b805441b84017bdd313d412a4138e4fb41f3d3.tar.bz2
podman-e4b805441b84017bdd313d412a4138e4fb41f3d3.zip
Merge pull request #4538 from containers/dependabot/go_modules/github.com/containers/storage-1.14.0
build(deps): bump github.com/containers/storage from 1.13.5 to 1.14.0
Diffstat (limited to 'vendor/github.com/klauspost/compress/zstd/bytebuf.go')
-rw-r--r--vendor/github.com/klauspost/compress/zstd/bytebuf.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/compress/zstd/bytebuf.go b/vendor/github.com/klauspost/compress/zstd/bytebuf.go
index 3538063f1..07321acb1 100644
--- a/vendor/github.com/klauspost/compress/zstd/bytebuf.go
+++ b/vendor/github.com/klauspost/compress/zstd/bytebuf.go
@@ -101,6 +101,9 @@ func (r *readerWrapper) readBig(n int, dst []byte) ([]byte, error) {
dst = make([]byte, n)
}
n2, err := io.ReadFull(r.r, dst[:n])
+ if err == io.EOF && n > 0 {
+ err = io.ErrUnexpectedEOF
+ }
return dst[:n2], err
}