]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Fix archive freeing bug in bsdcat.
authorJoerg Sonnenberger <joerg@bec.de>
Sat, 7 Oct 2017 00:33:16 +0000 (02:33 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Sat, 7 Oct 2017 00:33:16 +0000 (02:33 +0200)
commit0bec66ba5e40a87295ed823cdfb1c63a26c212ad
treecaf377c3ee0e06f85b6b9de5782fade7aec77fb5
parentc10875db78b04fd730bb08245b7032baba906815
Fix archive freeing bug in bsdcat.

(1) Do not double free a for the stdin case. Reported by Sean Purcell in
    PR #904.
(2) Do not query errors after archive_read_free either, the memory is
    gone. Split operation into close and read, reporting errors from the
    former.
Makefile.am
cat/bsdcat.c
cat/test/CMakeLists.txt
cat/test/test_stdin.c [new file with mode: 0644]