]> git.ipfire.org Git - thirdparty/libarchive.git/commit
archive_read_next_header2: clean old entry data 1218/head
authorDmitry Torokhov <dtor@chromium.org>
Tue, 25 Jun 2019 22:17:52 +0000 (15:17 -0700)
committerDmitry Torokhov <dtor@chromium.org>
Wed, 26 Jun 2019 17:29:52 +0000 (10:29 -0700)
commitea9c2354bac56ec7fc9c9d613c1706bf13809962
treef48ab31606f894acc4932bef29dfe8f9837b0593
parentaa48bfac0f4ede8a6a4dfa545ad91684b41a9285
archive_read_next_header2: clean old entry data

We need to clean old entry data in archive_read_next_header2 in Windows
and Posix disk readers to ensure consistent results. One possible
failure mode: sparse data from the previous entry is carried over to
next non-sparse file entry, causing it to be mishandled.
libarchive/archive_read_disk_posix.c
libarchive/archive_read_disk_windows.c