]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Be consistent about the types of internal and external link counts.
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 29 Apr 2017 19:39:57 +0000 (21:39 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 29 Apr 2017 19:39:57 +0000 (21:39 +0200)
Reported-By: OSS-Fuzz issue 577

libarchive/archive_read_support_format_cpio.c

index ffd4a8580ab45442082885437eaff9ab4679f832..ad9f782de48884cc1f22b221ca34e390b0f01b68 100644 (file)
@@ -165,7 +165,7 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_read_support_format_cpio.c 20116
 struct links_entry {
         struct links_entry      *next;
         struct links_entry      *previous;
-        int                      links;
+        unsigned int             links;
         dev_t                    dev;
         int64_t                  ino;
         char                    *name;