summaryrefslogtreecommitdiffstats
path: root/Utilities/cmlibarchive/libarchive/archive_read_private.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-15 13:07:48 (GMT)
committerBrad King <brad.king@kitware.com>2014-04-15 13:08:20 (GMT)
commit6ab7c326485b4af46a4e45faef2ac7d469df8840 (patch)
treef41bf6216150908e28eb4eb11e8f8c04642b1fef /Utilities/cmlibarchive/libarchive/archive_read_private.h
parent5a58efaac3557b0cee27f06e49183069cd598a7f (diff)
downloadCMake-6ab7c326485b4af46a4e45faef2ac7d469df8840.zip
CMake-6ab7c326485b4af46a4e45faef2ac7d469df8840.tar.gz
CMake-6ab7c326485b4af46a4e45faef2ac7d469df8840.tar.bz2
libarchive: Avoid left-shift overflow of signed integer
In libarchive/archive_write_set_format_zip.c there are two calls to archive_le32enc whose second argument is of the form archive_entry_mode(zip->entry) << 16 However, the return type from archive_entry_mode may be a signed integer so the shift may overflow. Since the second argument of archive_le32enc expects uint32_t anyway, simply cast to that prior to shifting.
Diffstat (limited to 'Utilities/cmlibarchive/libarchive/archive_read_private.h')
0 files changed, 0 insertions, 0 deletions