lantiq: Fix fw_cutter LzmaWrapper

The destination buffer size `d_len` is passed to `lzma_inflate` as a
pointer. Therefore, it needs to be dereferenced to compare its content.

Signed-off-by: Christian Franke <nobody@nowhere.ws>
This commit is contained in:
Christian Franke 2019-10-17 15:12:05 +02:00 committed by Daniel Golle
parent 07b5c59232
commit d544bc84a0

View File

@ -153,7 +153,7 @@ int lzma_inflate(unsigned char *source, int s_len, unsigned char *dest, int *d_l
outStream = 0;
else
{
if (outSizeFull > d_len)
if (outSizeFull > *d_len)
outStream = 0;
else
outStream = dest;