Browse Source

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 <[email protected]>
Christian Franke 6 years ago
parent
commit
d544bc84a0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      package/kernel/lantiq/ltq-vdsl-fw/src/LzmaWrapper.c

+ 1 - 1
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;
     outStream = 0;
   else
   else
   {
   {
-    if (outSizeFull > d_len)
+    if (outSizeFull > *d_len)
       outStream = 0;
       outStream = 0;
     else
     else
       outStream = dest;
       outStream = dest;