]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Make sure that it does not lost number by overflow.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 14 Oct 2009 15:22:32 +0000 (11:22 -0400)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Wed, 14 Oct 2009 15:22:32 +0000 (11:22 -0400)
SVN-Revision: 1523

libarchive/archive_read_support_format_iso9660.c

index 40ded335e82b4cb0fb303c74f2844687c88f5335..07bd9688098269cb4ab58292816df32656bf8645 100644 (file)
@@ -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) {