busybox/archival
Samuel Sapalski f25d254dfd decompress_gunzip: Fix DoS if gzip is corrupt
On certain corrupt gzip files, huft_build will set the error bit on
the result pointer. If afterwards abort_unzip is called huft_free
might run into a segmentation fault or an invalid pointer to
free(p).

In order to mitigate this, we check in huft_free if the error bit
is set and clear it before the linked list is freed.

Signed-off-by: Samuel Sapalski <samuel.sapalski@nokia.com>
Signed-off-by: Peter Kaestle <peter.kaestle@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2021-03-12 10:45:10 +01:00
..
libarchive decompress_gunzip: Fix DoS if gzip is corrupt 2021-03-12 10:45:10 +01:00
ar.c help text tweaks 2020-12-18 04:12:51 +01:00
bbunzip_test2.sh
bbunzip_test3.sh
bbunzip_test.sh
bbunzip.c help text tweaks 2020-12-18 04:12:51 +01:00
bzip2.c help text tweaks 2020-12-13 19:04:19 +01:00
Config.src
cpio.c help text tweaks 2020-12-18 04:12:51 +01:00
dpkg_deb.c help text tweaks 2020-12-18 04:12:51 +01:00
dpkg.c decrease paddign: gcc-9.3.1 slaps 32-byte alignment on arrays willy-nilly 2020-11-30 13:03:03 +01:00
gzip.c
Kbuild.src
lzop.c
rpm.c libbb: add and use infrastructure for fixed page size optimization 2020-12-14 18:54:30 +01:00
rpm.h
tar_symlink_attack
tar.c tar: expand --help 2020-12-08 16:46:41 +01:00
unzip.c unzip: -d should create the dir 2020-04-29 14:37:21 +02:00