Merge pull request #9757 from containerd/dependabot/go_modules/github.com/klauspost/compress-1.17.6
build(deps): bump github.com/klauspost/compress from 1.17.5 to 1.17.6
This commit is contained in:
		
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -36,7 +36,7 @@ require ( | ||||
| 	github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 | ||||
| 	github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 | ||||
| 	github.com/intel/goresctrl v0.6.0 | ||||
| 	github.com/klauspost/compress v1.17.5 | ||||
| 	github.com/klauspost/compress v1.17.6 | ||||
| 	github.com/minio/sha256-simd v1.0.1 | ||||
| 	github.com/moby/locker v1.0.1 | ||||
| 	github.com/moby/sys/mountinfo v0.7.1 | ||||
|   | ||||
							
								
								
									
										4
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
									
									
									
									
								
							| @@ -188,8 +188,8 @@ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHm | ||||
| github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= | ||||
| github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= | ||||
| github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= | ||||
| github.com/klauspost/compress v1.17.5 h1:d4vBd+7CHydUqpFBgUEKkSdtSugf9YFmSkvUYPquI5E= | ||||
| github.com/klauspost/compress v1.17.5/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= | ||||
| github.com/klauspost/compress v1.17.6 h1:60eq2E/jlfwQXtvZEeBUYADs+BwKBWURIY+Gj2eRGjI= | ||||
| github.com/klauspost/compress v1.17.6/go.mod h1:/dCuZOvVtNoHsyb+cuJD3itjs3NbnF6KH9zAO4BDxPM= | ||||
| github.com/klauspost/cpuid/v2 v2.2.5 h1:0E5MSMDEoAulmXNFquVs//DdoomxaoTY1kUhbc/qbZg= | ||||
| github.com/klauspost/cpuid/v2 v2.2.5/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= | ||||
| github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/klauspost/compress/.goreleaser.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/klauspost/compress/.goreleaser.yml
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -3,7 +3,6 @@ | ||||
| before: | ||||
|   hooks: | ||||
|     - ./gen.sh | ||||
|     - go install mvdan.cc/garble@v0.10.1 | ||||
|  | ||||
| builds: | ||||
|   - | ||||
| @@ -32,7 +31,6 @@ builds: | ||||
|       - mips64le | ||||
|     goarm: | ||||
|       - 7 | ||||
|     gobinary: garble | ||||
|   - | ||||
|     id: "s2d" | ||||
|     binary: s2d | ||||
| @@ -59,7 +57,6 @@ builds: | ||||
|       - mips64le | ||||
|     goarm: | ||||
|       - 7 | ||||
|     gobinary: garble | ||||
|   - | ||||
|     id: "s2sx" | ||||
|     binary: s2sx | ||||
| @@ -87,7 +84,6 @@ builds: | ||||
|       - mips64le | ||||
|     goarm: | ||||
|       - 7 | ||||
|     gobinary: garble | ||||
|  | ||||
| archives: | ||||
|   - | ||||
|   | ||||
							
								
								
									
										8
									
								
								vendor/github.com/klauspost/compress/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/klauspost/compress/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -16,6 +16,14 @@ This package provides various compression algorithms. | ||||
|  | ||||
| # changelog | ||||
|  | ||||
| * Jan 26th, 2024 - [v1.17.5](https://github.com/klauspost/compress/releases/tag/v1.17.5) | ||||
| 	* flate: Fix reset with dictionary on custom window encodes by @klauspost in https://github.com/klauspost/compress/pull/912 | ||||
| 	* zstd: Add Frame header encoding and stripping by @klauspost in https://github.com/klauspost/compress/pull/908 | ||||
| 	* zstd: Limit better/best default window to 8MB by @klauspost in https://github.com/klauspost/compress/pull/913 | ||||
| 	* zstd: Speed improvements by @greatroar in https://github.com/klauspost/compress/pull/896 https://github.com/klauspost/compress/pull/910 | ||||
| 	* s2: Fix callbacks for skippable blocks and disallow 0xfe (Padding) by @Jille in https://github.com/klauspost/compress/pull/916 https://github.com/klauspost/compress/pull/917 | ||||
| https://github.com/klauspost/compress/pull/919 https://github.com/klauspost/compress/pull/918 | ||||
|  | ||||
| * Dec 1st, 2023 - [v1.17.4](https://github.com/klauspost/compress/releases/tag/v1.17.4) | ||||
| 	* huff0: Speed up symbol counting by @greatroar in https://github.com/klauspost/compress/pull/887 | ||||
| 	* huff0: Remove byteReader by @greatroar in https://github.com/klauspost/compress/pull/886 | ||||
|   | ||||
							
								
								
									
										37
									
								
								vendor/github.com/klauspost/compress/zstd/enc_best.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										37
									
								
								vendor/github.com/klauspost/compress/zstd/enc_best.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -201,14 +201,6 @@ encodeLoop: | ||||
| 			if delta >= e.maxMatchOff || delta <= 0 || load3232(src, offset) != first { | ||||
| 				return | ||||
| 			} | ||||
| 			if debugAsserts { | ||||
| 				if offset >= s { | ||||
| 					panic(fmt.Sprintf("offset: %d - s:%d - rep: %d - cur :%d - max: %d", offset, s, rep, e.cur, e.maxMatchOff)) | ||||
| 				} | ||||
| 				if !bytes.Equal(src[s:s+4], src[offset:offset+4]) { | ||||
| 					panic(fmt.Sprintf("first match mismatch: %v != %v, first: %08x", src[s:s+4], src[offset:offset+4], first)) | ||||
| 				} | ||||
| 			} | ||||
| 			// Try to quick reject if we already have a long match. | ||||
| 			if m.length > 16 { | ||||
| 				left := len(src) - int(m.s+m.length) | ||||
| @@ -227,8 +219,10 @@ encodeLoop: | ||||
| 				} | ||||
| 			} | ||||
| 			l := 4 + e.matchlen(s+4, offset+4, src) | ||||
| 			if true { | ||||
| 			if m.rep <= 0 { | ||||
| 				// Extend candidate match backwards as far as possible. | ||||
| 				// Do not extend repeats as we can assume they are optimal | ||||
| 				// and offsets change if s == nextEmit. | ||||
| 				tMin := s - e.maxMatchOff | ||||
| 				if tMin < 0 { | ||||
| 					tMin = 0 | ||||
| @@ -239,7 +233,14 @@ encodeLoop: | ||||
| 					l++ | ||||
| 				} | ||||
| 			} | ||||
|  | ||||
| 			if debugAsserts { | ||||
| 				if offset >= s { | ||||
| 					panic(fmt.Sprintf("offset: %d - s:%d - rep: %d - cur :%d - max: %d", offset, s, rep, e.cur, e.maxMatchOff)) | ||||
| 				} | ||||
| 				if !bytes.Equal(src[s:s+l], src[offset:offset+l]) { | ||||
| 					panic(fmt.Sprintf("second match mismatch: %v != %v, first: %08x", src[s:s+4], src[offset:offset+4], first)) | ||||
| 				} | ||||
| 			} | ||||
| 			cand := match{offset: offset, s: s, length: l, rep: rep} | ||||
| 			cand.estBits(bitsPerByte) | ||||
| 			if m.est >= highScore || cand.est-m.est+(cand.s-m.s)*bitsPerByte>>10 < 0 { | ||||
| @@ -336,24 +337,31 @@ encodeLoop: | ||||
| 		} | ||||
|  | ||||
| 		if debugAsserts { | ||||
| 			if best.offset >= best.s { | ||||
| 				panic(fmt.Sprintf("best.offset > s: %d >= %d", best.offset, best.s)) | ||||
| 			} | ||||
| 			if best.s < nextEmit { | ||||
| 				panic(fmt.Sprintf("s %d < nextEmit %d", best.s, nextEmit)) | ||||
| 			} | ||||
| 			if best.offset < s-e.maxMatchOff { | ||||
| 				panic(fmt.Sprintf("best.offset < s-e.maxMatchOff: %d < %d", best.offset, s-e.maxMatchOff)) | ||||
| 			} | ||||
| 			if !bytes.Equal(src[best.s:best.s+best.length], src[best.offset:best.offset+best.length]) { | ||||
| 				panic(fmt.Sprintf("match mismatch: %v != %v", src[best.s:best.s+best.length], src[best.offset:best.offset+best.length])) | ||||
| 			} | ||||
| 		} | ||||
|  | ||||
| 		// We have a match, we can store the forward value | ||||
| 		s = best.s | ||||
| 		if best.rep > 0 { | ||||
| 			var seq seq | ||||
| 			seq.matchLen = uint32(best.length - zstdMinMatch) | ||||
| 			if debugAsserts && s < nextEmit { | ||||
| 				panic("s < nextEmit") | ||||
| 			} | ||||
| 			addLiterals(&seq, best.s) | ||||
|  | ||||
| 			// Repeat. If bit 4 is set, this is a non-lit repeat. | ||||
| 			seq.offset = uint32(best.rep & 3) | ||||
| 			if debugSequences { | ||||
| 				println("repeat sequence", seq, "next s:", s) | ||||
| 				println("repeat sequence", seq, "next s:", best.s, "off:", best.s-best.offset) | ||||
| 			} | ||||
| 			blk.sequences = append(blk.sequences, seq) | ||||
|  | ||||
| @@ -396,7 +404,6 @@ encodeLoop: | ||||
|  | ||||
| 		// A 4-byte match has been found. Update recent offsets. | ||||
| 		// We'll later see if more than 4 bytes. | ||||
| 		s = best.s | ||||
| 		t := best.offset | ||||
| 		offset1, offset2, offset3 = s-t, offset1, offset2 | ||||
|  | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -267,7 +267,7 @@ github.com/intel/goresctrl/pkg/utils | ||||
| # github.com/json-iterator/go v1.1.12 | ||||
| ## explicit; go 1.12 | ||||
| github.com/json-iterator/go | ||||
| # github.com/klauspost/compress v1.17.5 | ||||
| # github.com/klauspost/compress v1.17.6 | ||||
| ## explicit; go 1.19 | ||||
| github.com/klauspost/compress | ||||
| github.com/klauspost/compress/fse | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Maksym Pavlenko
					Maksym Pavlenko