lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lzip-bug] busybox-1.31.0_lzip-0.diff


From: wdlkmpx
Subject: [Lzip-bug] busybox-1.31.0_lzip-0.diff
Date: Thu, 27 Jun 2019 05:44:08 +0800

I created an updated diff. I tested a compiled busybox extracting a few
.lz files and it seems to work fine...

The only change i made:
magic.b16 = xstate->magic.b16

otherwise it would not compile

archival/libarchive/open_transformer.c
 +      if (ENABLE_FEATURE_SEAMLESS_LZ
-+       && magic.b16[0] == LZIP_MAGIC1
++       && xstate->magic.b16[0] == LZIP_MAGIC1
......
-+              xread(fd, magic.b16, sizeof(magic.b16[0]));
-+              if (magic.b16[0] == LZIP_MAGIC2) {
++              xread(fd, xstate->magic.b16, sizeof(xstate->magic.b16[0]));
++              if (xstate->magic.b16[0] == LZIP_MAGIC2) {
......
        if (ENABLE_FEATURE_SEAMLESS_XZ
-        && magic.b16[0] == XZ_MAGIC1
+        && xstate->magic.b16[0] == XZ_MAGIC1

Attachment: busybox-1.31.0_lzip-0.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]