summaryrefslogtreecommitdiff
path: root/libarchive/archive_read_support_format_zip.c
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-02-09 19:13:36 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-02-09 19:13:36 +0000
commit4d44c8d1829cfdaa134c3f88cad04f0c73b47ad8 (patch)
tree02e7b67dbf1852d01e12499cb10c8e3a960c2038 /libarchive/archive_read_support_format_zip.c
parentbfd7accf016895bfc7c0af369106f52e0ca32e79 (diff)
Notes
Diffstat (limited to 'libarchive/archive_read_support_format_zip.c')
-rw-r--r--libarchive/archive_read_support_format_zip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/archive_read_support_format_zip.c b/libarchive/archive_read_support_format_zip.c
index fce04b8a2cc1..5668f12c5375 100644
--- a/libarchive/archive_read_support_format_zip.c
+++ b/libarchive/archive_read_support_format_zip.c
@@ -265,7 +265,7 @@ archive_read_format_zip_seekable_bid(struct archive_read *a, int best_bid)
if (zip->central_directory_entries != archive_le16dec(p + 8))
return 0;
/* Central directory can't extend beyond end of this file. */
- if (zip->central_directory_offset + zip->central_directory_size > filesize)
+ if (zip->central_directory_offset + (int64_t)zip->central_directory_size > filesize)
return 0;
/* This is just a tiny bit higher than the maximum returned by