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:
Dave Hylands 2016-02-01 11:17:27 -08:00 committed by Paul Sokolovsky
parent ae4ca4a039
commit ee2f58d04c

View file

@ -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);