From: Michihiro NAKAJIMA Date: Wed, 14 Oct 2009 15:22:32 +0000 (-0400) Subject: Make sure that it does not lost number by overflow. X-Git-Tag: v2.8.0~291 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2da527760d10ee5cec8cb03ddd7425235f0656b;p=thirdparty%2Flibarchive.git Make sure that it does not lost number by overflow. SVN-Revision: 1523 --- diff --git a/libarchive/archive_read_support_format_iso9660.c b/libarchive/archive_read_support_format_iso9660.c index 40ded335e..07bd96880 100644 --- a/libarchive/archive_read_support_format_iso9660.c +++ b/libarchive/archive_read_support_format_iso9660.c @@ -1723,7 +1723,7 @@ register_CE(struct iso9660 *iso9660, int32_t location, uint64_t offset; int i; - offset = location * iso9660->logical_block_size; + offset = ((uint64_t)location) * (uint64_t)iso9660->logical_block_size; if (((file->mode & AE_IFMT) == AE_IFREG && offset >= file->offset) || offset < iso9660->current_position) {