]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Issue 403: Buffer underflow parsing 'ar' header
authorTim Kientzle <kientzle@acm.org>
Sat, 7 Feb 2015 20:35:33 +0000 (12:35 -0800)
committerTim Kientzle <kientzle@acm.org>
Sat, 7 Feb 2015 20:49:33 +0000 (12:49 -0800)
commit97f964e3e0ce3ae34bfb4c366a37ba7c0d9610a6
treef0f539dcdbabfe314b480f90c3fbb7d54c8bc4c5
parent78e5fd4e8756b6c23c310d7c11722f663383b39c
Issue 403: Buffer underflow parsing 'ar' header

While pruning trailing text from ar filenames, we did not
check for an empty filename.  This results in reading the byte
before the filename on the stack.

While here, change a number of ar format issues from WARN to FATAL.
It's better to abort on a damaged file than risk reading garbage.
No doubt, this will require additional tuning in the future.
libarchive/archive_read_support_format_ar.c