From: Joerg Sonnenberger Date: Sat, 29 Apr 2017 19:39:57 +0000 (+0200) Subject: Be consistent about the types of internal and external link counts. X-Git-Tag: v3.3.2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c3ab9e0cb7ee18681366db24806821f9f81fc6b;p=thirdparty%2Flibarchive.git Be consistent about the types of internal and external link counts. Reported-By: OSS-Fuzz issue 577 --- diff --git a/libarchive/archive_read_support_format_cpio.c b/libarchive/archive_read_support_format_cpio.c index ffd4a8580..ad9f782de 100644 --- a/libarchive/archive_read_support_format_cpio.c +++ b/libarchive/archive_read_support_format_cpio.c @@ -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;