diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-18 10:37:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 10:37:37 -0400 |
commit | 48db8d9868ecbb1523f5b4b69815d16a19afa36f (patch) | |
tree | f1dfde65a2500c3813f91d6fa9f0566a76c483b8 /vendor/github.com/klauspost/compress/zstd/blockdec.go | |
parent | ce04a3e17f5d5ac1d0ac29302dc6e6d98edf28eb (diff) | |
parent | b6662eed3f27ac5466501b046db4f1608845af61 (diff) | |
download | podman-48db8d9868ecbb1523f5b4b69815d16a19afa36f.tar.gz podman-48db8d9868ecbb1523f5b4b69815d16a19afa36f.tar.bz2 podman-48db8d9868ecbb1523f5b4b69815d16a19afa36f.zip |
Merge pull request #10690 from rhatdan/VENDOR
Vendor in containers/common v0.40.0
Diffstat (limited to 'vendor/github.com/klauspost/compress/zstd/blockdec.go')
-rw-r--r-- | vendor/github.com/klauspost/compress/zstd/blockdec.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/github.com/klauspost/compress/zstd/blockdec.go b/vendor/github.com/klauspost/compress/zstd/blockdec.go index e30af505c..8a98c4562 100644 --- a/vendor/github.com/klauspost/compress/zstd/blockdec.go +++ b/vendor/github.com/klauspost/compress/zstd/blockdec.go @@ -168,10 +168,10 @@ func (b *blockDec) reset(br byteBuffer, windowSize uint64) error { // Read block data. if cap(b.dataStorage) < cSize { - if b.lowMem { + if b.lowMem || cSize > maxCompressedBlockSize { b.dataStorage = make([]byte, 0, cSize) } else { - b.dataStorage = make([]byte, 0, maxBlockSize) + b.dataStorage = make([]byte, 0, maxCompressedBlockSize) } } if cap(b.dst) <= maxSize { |