mirror of
				https://git.eden-emu.dev/eden-emu/eden.git
				synced 2025-10-25 19:03:17 +00:00 
			
		
		
		
	vfs_concat: verify short read
This commit is contained in:
		
							parent
							
								
									0faeac4fcb
								
							
						
					
					
						commit
						e1d8e0d842
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -168,6 +168,11 @@ std::size_t ConcatenatedVfsFile::Read(u8* data, std::size_t length, std::size_t | |||
|         cur_offset += actual_read_size; | ||||
|         cur_length -= actual_read_size; | ||||
|         it++; | ||||
| 
 | ||||
|         // If we encountered a short read, we're done.
 | ||||
|         if (actual_read_size < intended_read_size) { | ||||
|             break; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     return cur_offset - offset; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Liam
						Liam