]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 761: Heap overflow reading corrupted 7Zip files
authorTim Kientzle <kientzle@acm.org>
Mon, 19 Sep 2016 01:14:58 +0000 (18:14 -0700)
committerTim Kientzle <kientzle@acm.org>
Mon, 19 Sep 2016 01:14:58 +0000 (18:14 -0700)
commit7f17c791dcfd8c0416e2cd2485b19410e47ef126
tree81591383f4fe2f402beee3c3d74f6eee1abd35ba
parenta6dd4cc26217b9302dad59d1fcd4f5114abc10af
Issue 761:  Heap overflow reading corrupted 7Zip files

The sample file that demonstrated this had multiple 'EmptyStream'
attributes.  The first one ended up being used to calculate
certain statistics, then was overwritten by the second which
was incompatible with those statistics.

The fix here is to reject any header with multiple EmptyStream
attributes.  While here, also reject headers with multiple
EmptyFile, AntiFile, Name, or Attributes markers.
libarchive/archive_read_support_format_7zip.c