]> git.ipfire.org Git - thirdparty/libarchive.git/commit
After initializing a filter, we try to read from it to
authorTim Kientzle <kientzle@gmail.com>
Sat, 2 Jan 2010 01:21:05 +0000 (20:21 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sat, 2 Jan 2010 01:21:05 +0000 (20:21 -0500)
commit61dd5abb006d2d7bbc667a98dc2c7d16ad15a824
treefbcb8924ac9b387ce1dfbc98059bed11bb088b65
parent8490331c2ce6931736172670f801627a3c64324a
After initializing a filter, we try to read from it to
verify that it's working (in particular, this gives early
error reporting when external decompression programs are
nonexistent or exit immediately).  If this read failed,
we weren't properly cleaning up the just-initialized filter.
Since this is fatal, the easiest fix is to refactor the close()
handler and just release the entire filter chain.

SVN-Revision: 1790
libarchive/archive_read.c