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>
(cherry picked from commit d544bc84a07f299ac1e513715301cae5fbd30923)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
master
Christian Franke 5 years ago committed by Daniel Golle
parent c987955f82
commit 3468a4435a
  1. 2
      package/kernel/lantiq/ltq-vdsl-fw/src/LzmaWrapper.c

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

Loading…
Cancel
Save