diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2013-03-23 22:25:15 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2013-03-23 22:25:15 +0200 |
commit | 5ea900cb5ad862bca81316729f92357c1fc040ce (patch) | |
tree | 967dba90fcd111d2e9041bae897a57f16237a089 /COPYING.GPLv3 | |
parent | liblzma: Use lzma_block_buffer_bound64() in threaded encoder. (diff) | |
download | xz-5ea900cb5ad862bca81316729f92357c1fc040ce.tar.xz |
liblzma: Be less picky in lzma_alone_decoder().
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
Diffstat (limited to 'COPYING.GPLv3')
0 files changed, 0 insertions, 0 deletions