]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 717: Fix integer overflow when computing location of volume descriptor
authorTim Kientzle <kientzle@acm.org>
Sun, 19 Jun 2016 21:34:37 +0000 (14:34 -0700)
committerTim Kientzle <kientzle@acm.org>
Sun, 19 Jun 2016 21:34:37 +0000 (14:34 -0700)
commit3ad08e01b4d253c66ae56414886089684155af22
tree343dce1da0d53060b92e8fdc50fe54af68716621
parent05caadc7eedbef471ac9610809ba683f0c698700
Issue 717:  Fix integer overflow when computing location of volume descriptor

The multiplication here defaulted to 'int' but calculations
of file positions should always use int64_t.  A simple cast
suffices to fix this since the base location is always 32 bits
for ISO, so multiplying by the sector size will never overflow
a 64-bit integer.
libarchive/archive_read_support_format_iso9660.c