diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-15 06:32:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 06:32:07 -0400 |
commit | 758f2c7a094a3654af98d9365b7f975b7bd12ff4 (patch) | |
tree | 41dace9da8f4eb9da1500b28e94ff72e04ebee2f /vendor/github.com/klauspost/compress/zstd/bytebuf.go | |
parent | ae7997ab50c7dcfbf7f0a3ec19c9ce1126095f8e (diff) | |
parent | daebf50b899fe998b8866a9f99e4c2b677645091 (diff) | |
download | podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.tar.gz podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.tar.bz2 podman-758f2c7a094a3654af98d9365b7f975b7bd12ff4.zip |
Merge pull request #13498 from flouthoc/podman-vendor-buildah
vendor: update `c/buildah`, `c/image` and `c/storage`
Diffstat (limited to 'vendor/github.com/klauspost/compress/zstd/bytebuf.go')
-rw-r--r-- | vendor/github.com/klauspost/compress/zstd/bytebuf.go | 3 |
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 aab71c6cf..b80191e4b 100644 --- a/vendor/github.com/klauspost/compress/zstd/bytebuf.go +++ b/vendor/github.com/klauspost/compress/zstd/bytebuf.go @@ -113,6 +113,9 @@ func (r *readerWrapper) readBig(n int, dst []byte) ([]byte, error) { func (r *readerWrapper) readByte() (byte, error) { n2, err := r.r.Read(r.tmp[:1]) if err != nil { + if err == io.EOF { + err = io.ErrUnexpectedEOF + } return 0, err } if n2 != 1 { |