]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Make sure has_encrypted_entries is a signed int 57/head
authorNiLuJe <ninuje@gmail.com>
Mon, 23 Dec 2013 00:44:45 +0000 (01:44 +0100)
committerNiLuJe <ninuje@gmail.com>
Mon, 23 Dec 2013 00:44:45 +0000 (01:44 +0100)
commit618345bcd60051a333436fd19ad769d2541b9046
treea154f06f6de8957366029376fdc6ec1ca4afb853
parentcd1740912b18f748a4f9b491a32b44c1712a7478
Make sure has_encrypted_entries is a signed int

Related to cd1740912b18f748a4f9b491a32b44c1712a7478

Trying to assign -1 (ARCHIVE_READ_FORMAT_ENCRYPTION_DONT_KNOW)
to a data type we're not sure will always be signed is a bad idea
(blew up on ARM, for instance).
libarchive/archive_read_support_format_7zip.c
libarchive/archive_read_support_format_rar.c
libarchive/archive_read_support_format_zip.c