mirror of
				https://github.com/containers/podman.git
				synced 2025-11-01 02:42:11 +08:00 
			
		
		
		
	Bump github.com/containers/storage from 1.19.0 to 1.19.1
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.19.0 to 1.19.1. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/master/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.19.0...v1.19.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
		![27856297+dependabot-preview[bot]@users.noreply.github.com](/assets/img/avatar_default.png) dependabot-preview[bot]
					dependabot-preview[bot]
				
			
				
					committed by
					
						 Daniel J Walsh
						Daniel J Walsh
					
				
			
			
				
	
			
			
			 Daniel J Walsh
						Daniel J Walsh
					
				
			
						parent
						
							e1be837a4f
						
					
				
				
					commit
					86f7dbc4cb
				
			
							
								
								
									
										19
									
								
								vendor/github.com/klauspost/compress/zstd/blockdec.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/klauspost/compress/zstd/blockdec.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -131,17 +131,25 @@ func (b *blockDec) reset(br byteBuffer, windowSize uint64) error { | ||||
| 	b.Type = blockType((bh >> 1) & 3) | ||||
| 	// find size. | ||||
| 	cSize := int(bh >> 3) | ||||
| 	maxSize := maxBlockSize | ||||
| 	switch b.Type { | ||||
| 	case blockTypeReserved: | ||||
| 		return ErrReservedBlockType | ||||
| 	case blockTypeRLE: | ||||
| 		b.RLESize = uint32(cSize) | ||||
| 		if b.lowMem { | ||||
| 			maxSize = cSize | ||||
| 		} | ||||
| 		cSize = 1 | ||||
| 	case blockTypeCompressed: | ||||
| 		if debug { | ||||
| 			println("Data size on stream:", cSize) | ||||
| 		} | ||||
| 		b.RLESize = 0 | ||||
| 		maxSize = maxCompressedBlockSize | ||||
| 		if windowSize < maxCompressedBlockSize && b.lowMem { | ||||
| 			maxSize = int(windowSize) | ||||
| 		} | ||||
| 		if cSize > maxCompressedBlockSize || uint64(cSize) > b.WindowSize { | ||||
| 			if debug { | ||||
| 				printf("compressed block too big: csize:%d block: %+v\n", uint64(cSize), b) | ||||
| @ -160,8 +168,8 @@ func (b *blockDec) reset(br byteBuffer, windowSize uint64) error { | ||||
| 			b.dataStorage = make([]byte, 0, maxBlockSize) | ||||
| 		} | ||||
| 	} | ||||
| 	if cap(b.dst) <= maxBlockSize { | ||||
| 		b.dst = make([]byte, 0, maxBlockSize+1) | ||||
| 	if cap(b.dst) <= maxSize { | ||||
| 		b.dst = make([]byte, 0, maxSize+1) | ||||
| 	} | ||||
| 	var err error | ||||
| 	b.data, err = br.readBig(cSize, b.dataStorage) | ||||
| @ -679,8 +687,11 @@ func (b *blockDec) decodeCompressed(hist *history) error { | ||||
| 		println("initializing sequences:", err) | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
| 	err = seqs.decode(nSeqs, br, hist.b) | ||||
| 	hbytes := hist.b | ||||
| 	if len(hbytes) > hist.windowSize { | ||||
| 		hbytes = hbytes[len(hbytes)-hist.windowSize:] | ||||
| 	} | ||||
| 	err = seqs.decode(nSeqs, br, hbytes) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user