1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

Make Uncompresed Size validation more strict

in alone_decoder.c.
This commit is contained in:
Lasse Collin 2008-01-16 13:27:03 +02:00
parent 01d71d60b7
commit 9bc33a54cb

View file

@ -75,7 +75,8 @@ alone_decode(lzma_coder *coder,
& (UINT32_C(1) << i)) & (UINT32_C(1) << i))
++count; ++count;
if (count > 1) if (count != 1 || coder->options.lzma.dictionary_size
> LZMA_DICTIONARY_SIZE_MAX)
return LZMA_DATA_ERROR; return LZMA_DATA_ERROR;
coder->pos = 0; coder->pos = 0;