]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
7z: PackInfo Digests are prefixed by kCRC, not kSize
authorcielavenir <cielartisan@gmail.com>
Thu, 19 Dec 2019 04:10:04 +0000 (13:10 +0900)
committerMartin Matuska <martin@matuska.org>
Sat, 21 Dec 2019 21:38:55 +0000 (22:38 +0100)
libarchive/archive_read_support_format_7zip.c

index 8ca422ec0669f2b20f312d3b533156bacbf33c2a..87c6c52721975095a8a1c75021e2120eef4d344e 100644 (file)
@@ -1787,7 +1787,7 @@ read_PackInfo(struct archive_read *a, struct _7z_pack_info *pi)
                return (0);
        }
 
-       if (*p != kSize)
+       if (*p != kCRC)
                return (-1);
 
        if (read_Digests(a, &(pi->digest), (size_t)pi->numPackStreams) < 0)