mirror of
				https://git.tukaani.org/xz.git
				synced 2025-11-04 07:22:55 +00:00 
			
		
		
		
	Fix data corruption in LZ/LZMA2 encoder.
Thanks to Jonathan Stott for the bug report.
This commit is contained in:
		
							parent
							
								
									66da129c8e
								
							
						
					
					
						commit
						3ce1916c83
					
				@ -234,7 +234,7 @@ mf_avail(const lzma_mf *mf)
 | 
			
		||||
static inline uint32_t
 | 
			
		||||
mf_unencoded(const lzma_mf *mf)
 | 
			
		||||
{
 | 
			
		||||
	return mf->write_pos - mf->read_pos - mf->read_ahead;
 | 
			
		||||
	return mf->write_pos - mf->read_pos + mf->read_ahead;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user