Update module github.com/klauspost/compress to v1.17.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									4990c6ec6a
								
							
						
					
					
						commit
						d85a71b4d5
					
				
							
								
								
									
										2
									
								
								go.mod
								
								
								
								
							
							
						
						
									
										2
									
								
								go.mod
								
								
								
								
							|  | @ -41,7 +41,7 @@ require ( | |||
| 	github.com/hashicorp/go-multierror v1.1.1 | ||||
| 	github.com/hugelgupf/p9 v0.3.1-0.20230822151754-54f5c5530921 | ||||
| 	github.com/json-iterator/go v1.1.12 | ||||
| 	github.com/klauspost/compress v1.17.5 | ||||
| 	github.com/klauspost/compress v1.17.7 | ||||
| 	github.com/linuxkit/virtsock v0.0.0-20220523201153-1a23e78aa7a2 | ||||
| 	github.com/mattn/go-shellwords v1.0.12 | ||||
| 	github.com/mattn/go-sqlite3 v1.14.21 | ||||
|  |  | |||
							
								
								
									
										4
									
								
								go.sum
								
								
								
								
							
							
						
						
									
										4
									
								
								go.sum
								
								
								
								
							|  | @ -348,8 +348,8 @@ github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0Lh | |||
| 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.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= | ||||
| 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.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= | ||||
| github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= | ||||
| github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= | ||||
| github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc= | ||||
| github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws= | ||||
|  |  | |||
|  | @ -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: | ||||
|   - | ||||
|  |  | |||
|  | @ -16,6 +16,18 @@ This package provides various compression algorithms. | |||
| 
 | ||||
| # changelog | ||||
| 
 | ||||
| * Feb 5th, 2024 - [1.17.6](https://github.com/klauspost/compress/releases/tag/v1.17.6) | ||||
| 	* zstd: Fix incorrect repeat coding in best mode https://github.com/klauspost/compress/pull/923 | ||||
| 	* s2: Fix DecodeConcurrent deadlock on errors https://github.com/klauspost/compress/pull/925 | ||||
|    | ||||
| * 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 https://github.com/klauspost/compress/pull/912 | ||||
| 	* zstd: Add Frame header encoding and stripping https://github.com/klauspost/compress/pull/908 | ||||
| 	* zstd: Limit better/best default window to 8MB 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 | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -719,8 +719,8 @@ github.com/josharian/intern | |||
| # github.com/json-iterator/go v1.1.12 | ||||
| ## explicit; go 1.12 | ||||
| github.com/json-iterator/go | ||||
| # github.com/klauspost/compress v1.17.5 | ||||
| ## explicit; go 1.19 | ||||
| # github.com/klauspost/compress v1.17.7 | ||||
| ## explicit; go 1.20 | ||||
| github.com/klauspost/compress | ||||
| github.com/klauspost/compress/flate | ||||
| github.com/klauspost/compress/fse | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue