mirror of https://git.tukaani.org/xz.git
Make Uncompresed Size validation more strict
in alone_decoder.c.
This commit is contained in:
parent
01d71d60b7
commit
9bc33a54cb
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue