mirror of
				https://git.tukaani.org/xz.git
				synced 2025-11-03 23:12:57 +00:00 
			
		
		
		
	To avoid false positives when detecting .lzma files, rare values in dictionary size and uncompressed size fields were rejected. They will still be rejected if .lzma files are decoded with lzma_auto_decoder(), but when using lzma_alone_decoder() directly, such files will now be accepted. Hopefully this is an OK compromise. This doesn't affect xz because xz still has its own file format detection code. This does affect lzmadec though. So after this commit lzmadec will accept files that xz or xz-emulating-lzma doesn't. NOTE: lzma_alone_decoder() still won't decode all .lzma files because liblzma's LZMA decoder doesn't support lc + lp > 4. Reported here: http://sourceforge.net/projects/lzmautils/forums/forum/708858/topic/7068827
		
			
				
	
	
		
			24 lines
		
	
	
		
			601 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			601 B
		
	
	
	
		
			C
		
	
	
	
	
	
///////////////////////////////////////////////////////////////////////////////
 | 
						|
//
 | 
						|
/// \file       alone_decoder.h
 | 
						|
/// \brief      Decoder for LZMA_Alone files
 | 
						|
//
 | 
						|
//  Author:     Lasse Collin
 | 
						|
//
 | 
						|
//  This file has been put into the public domain.
 | 
						|
//  You can do whatever you want with this file.
 | 
						|
//
 | 
						|
///////////////////////////////////////////////////////////////////////////////
 | 
						|
 | 
						|
#ifndef LZMA_ALONE_DECODER_H
 | 
						|
#define LZMA_ALONE_DECODER_H
 | 
						|
 | 
						|
#include "common.h"
 | 
						|
 | 
						|
 | 
						|
extern lzma_ret lzma_alone_decoder_init(
 | 
						|
		lzma_next_coder *next, const lzma_allocator *allocator,
 | 
						|
		uint64_t memlimit, bool picky);
 | 
						|
 | 
						|
#endif
 |