summaryrefslogtreecommitdiff
path: root/vendor/github.com/klauspost/compress/flate/level2.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-19 17:50:11 +0100
committerGitHub <noreply@github.com>2020-02-19 17:50:11 +0100
commitf2bcc9cc7dc8b1937f39db503db96651d84c3e3e (patch)
tree2999b7f3be8cc23ed3b9653966c389cd7b55d468 /vendor/github.com/klauspost/compress/flate/level2.go
parentaa1bb0b579fa053c3b0c47668dc8be0fa7f987f4 (diff)
parent86be569961b6dc73d15cbf9e709a12e586ba0077 (diff)
downloadpodman-f2bcc9cc7dc8b1937f39db503db96651d84c3e3e.tar.gz
podman-f2bcc9cc7dc8b1937f39db503db96651d84c3e3e.tar.bz2
podman-f2bcc9cc7dc8b1937f39db503db96651d84c3e3e.zip
Merge pull request #5258 from containers/dependabot/go_modules/github.com/containers/storage-1.16.0
build(deps): bump github.com/containers/storage from 1.15.8 to 1.16.0
Diffstat (limited to 'vendor/github.com/klauspost/compress/flate/level2.go')
-rw-r--r--vendor/github.com/klauspost/compress/flate/level2.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/klauspost/compress/flate/level2.go b/vendor/github.com/klauspost/compress/flate/level2.go
index 7c824431e..dc6b1d314 100644
--- a/vendor/github.com/klauspost/compress/flate/level2.go
+++ b/vendor/github.com/klauspost/compress/flate/level2.go
@@ -1,5 +1,7 @@
package flate
+import "fmt"
+
// fastGen maintains the table for matches,
// and the previous byte block for level 2.
// This is the generic implementation.
@@ -16,6 +18,10 @@ func (e *fastEncL2) Encode(dst *tokens, src []byte) {
minNonLiteralBlockSize = 1 + 1 + inputMargin
)
+ if debugDecode && e.cur < 0 {
+ panic(fmt.Sprint("e.cur < 0: ", e.cur))
+ }
+
// Protect against e.cur wraparound.
for e.cur >= bufferReset {
if len(e.hist) == 0 {