]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 226: Fix infinite loop when a data descriptor marking
authorTim Kientzle <kientzle@gmail.com>
Tue, 24 Jan 2012 06:05:46 +0000 (01:05 -0500)
committerTim Kientzle <kientzle@gmail.com>
Tue, 24 Jan 2012 06:05:46 +0000 (01:05 -0500)
commitda64ed4917ae4ff88c1f9bdf22eee62768350fab
tree4ef793dc8f2cc1531115018b0f865cc2b6bcac47
parent8a2f59974b3c22ac809f91b42f328bbc70ba6403
Issue 226: Fix infinite loop when a data descriptor marking
the end of an uncompressed entry falls exactly at the end of
a block and the seeking Zip reader tries to skip it.

To test this, the test_compat_zip_7 test reads a small sample
XPS file with every block size from 1 byte up to 1000 bytes.
(For this specific bug, an 807-byte block triggers the
problem.)

SVN-Revision: 4201
libarchive/archive_read_support_format_zip.c
libarchive/test/test_compat_zip.c