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:
parent
01d71d60b7
commit
9bc33a54cb
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue