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
1 changed files with 2 additions and 1 deletions

View File

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