tinf_uncompress: Initialize TINF_DATA::destSize.
Without destSize being explicitly set, you get random failures with TINF_DEST_OVERFLOW being returned (since destSize winds up being initialized with a random value from the stack).
This commit is contained in:
parent
ae4ca4a039
commit
ee2f58d04c
1 changed files with 1 additions and 0 deletions
|
|
@ -458,6 +458,7 @@ int tinf_uncompress(void *dest, unsigned int *destLen,
|
|||
|
||||
d.destStart = (unsigned char *)dest;
|
||||
d.destRemaining = *destLen;
|
||||
d.destSize = *destLen;
|
||||
|
||||
res = tinf_uncompress_dyn(&d);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue