]> git.ipfire.org Git - thirdparty/libarchive.git/commit - Makefile.am
Fix a potential crash issue discovered by Alexander Cherepanov:
authorTim Kientzle <kientzle@acm.org>
Sat, 10 Jan 2015 20:24:58 +0000 (12:24 -0800)
committerTim Kientzle <kientzle@acm.org>
Sat, 10 Jan 2015 20:24:58 +0000 (12:24 -0800)
commit6e06b1c89dd0d16f74894eac4cfc1327a06ee4a0
tree96e98d0fba702bdca504274db804fd153ab1448a
parent48b288a03347e49f2f9501f040f626f916195de6
Fix a potential crash issue discovered by Alexander Cherepanov:

It seems bsdtar automatically handles stacked compression. This is a
nice feature but it could be problematic when it's completely
unlimited.  Most clearly it's illustrated with quines:

$ curl -sRO http://www.maximumcompression.com/selfgz.gz
$ (ulimit -v 10000000 && bsdtar -tvf selfgz.gz)
bsdtar: Error opening archive: Can't allocate data for gzip decompression

Without ulimit, bsdtar will eat all available memory. This could also
be a problem for other applications using libarchive.
Makefile.am
libarchive/archive_read.c
libarchive/test/CMakeLists.txt
libarchive/test/test_read_too_many_filters.c [new file with mode: 0644]
libarchive/test/test_read_too_many_filters.gz.uu [new file with mode: 0644]