mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 05:32:44 +00:00 
			
		
		
		
	LibArchive: Use read_entire_buffer for reading extended headers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53913
This commit is contained in:
		
							parent
							
								
									28c99e7a1f
								
							
						
					
					
						commit
						ebcd07ff33
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -80,7 +80,7 @@ inline ErrorOr<void> TarInputStream::for_each_extended_header(F func) | |||
| 
 | ||||
|     auto header_size = TRY(header().size()); | ||||
|     ByteBuffer file_contents_buffer = TRY(ByteBuffer::create_zeroed(header_size)); | ||||
|     VERIFY(TRY(file_stream.read(file_contents_buffer)).size() == header_size); | ||||
|     TRY(file_stream.read_entire_buffer(file_contents_buffer)); | ||||
| 
 | ||||
|     StringView file_contents { file_contents_buffer }; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 implicitfield
						implicitfield