]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 406: Segfault on malformed Zip archive
authorTim Kientzle <kientzle@acm.org>
Sun, 8 Feb 2015 03:03:43 +0000 (19:03 -0800)
committerTim Kientzle <kientzle@acm.org>
Sun, 8 Feb 2015 20:30:58 +0000 (12:30 -0800)
commit9e0689cff30f64defb2691003143a7ad3126c74a
tree41f704a8b89244a33628d0e898f3f33daecf49f8
parent90632371f89d1390bf71dd31ae1c842b9110bea2
Issue 406: Segfault on malformed Zip archive

Issue here was reading a size field as a signed number
and then using that as an offset.  Fixed by correctly
masking the size value to an unsigned result.

Includes test based on the archive provided in the issue report.
Makefile.am
libarchive/archive_read_support_format_zip.c
libarchive/test/CMakeLists.txt
libarchive/test/test_read_format_zip_malformed.c [new file with mode: 0644]
libarchive/test/test_read_format_zip_malformed1.zip.uu [new file with mode: 0644]