From 281ef53e7de5d30114dbf57a4b506b2d8d2720cc Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 12 Apr 2022 00:30:21 +0200 Subject: Update dependencies (#1800) --- vendor/github.com/klauspost/compress/zstd/bytebuf.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vendor/github.com/klauspost/compress/zstd/bytebuf.go') diff --git a/vendor/github.com/klauspost/compress/zstd/bytebuf.go b/vendor/github.com/klauspost/compress/zstd/bytebuf.go index aab71c6c..b80191e4 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 { -- cgit v1.2.3