]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 747 (and others?): Avoid OOB read when parsing multiple long lines
authorTim Kientzle <kientzle@acm.org>
Mon, 19 Sep 2016 00:27:47 +0000 (17:27 -0700)
committerTim Kientzle <kientzle@acm.org>
Mon, 19 Sep 2016 00:27:47 +0000 (17:27 -0700)
commiteec077f52bfa2d3f7103b4b74d52572ba8a15aca
tree8baee66c0fef83c0924b4443cef34b91d6d96917
parent2bc4e83dfa6369d7ae7622f282b44c5f72f49909
Issue 747 (and others?):  Avoid OOB read when parsing multiple long lines

The mtree bidder needs to look several lines ahead
in the input.  It does this by extending the read-ahead
and parsing subsequent lines from the same growing buffer.
A bookkeeping error when extending the read-ahead would
sometimes lead it to significantly over-count the
size of the line being read.
Makefile.am
libarchive/archive_read_support_format_mtree.c
libarchive/test/CMakeLists.txt
libarchive/test/test_read_format_mtree_crash747.c [new file with mode: 0644]
libarchive/test/test_read_format_mtree_crash747.mtree.bz2.uu [new file with mode: 0644]