busybox/archival
Natanael Copa 71cfbce655 gzip: fix compression level bug. Closes 9131
fix broken logic to get the gzip_level_config value from options -1 to
-9.

This fixes an off-by-one bug that caused gzip -9 output bigger files
than the other compression levels.

It fixes so that compression level 1 to 3 are actually mapped to level 4
as comments say.

It also fixes that levels -4 to -9 is mapped to correct level and avoids
out-of-bounds access.

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2016-08-15 01:26:28 +02:00
..
libarchive libarchive: fix xmalloc_open_zipped_read_close() 2016-06-21 02:04:16 +02:00
ar.c tweak defconfig 2015-10-25 20:36:03 +01:00
bbunzip_test2.sh
bbunzip_test3.sh
bbunzip_test.sh
bbunzip.c libarchive: fix xmalloc_open_zipped_read_close() on NOMMU 2016-06-20 11:06:42 +02:00
bzip2.c
Config.src
cpio.c cpio: tweak help text 2016-07-08 12:52:24 +02:00
dpkg_deb.c
dpkg.c
gzip.c gzip: fix compression level bug. Closes 9131 2016-08-15 01:26:28 +02:00
Kbuild.src
lzop.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
rpm2cpio.c
rpm.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
rpm.h
tar.c getopt32: add new syntax of 'o:+' and 'o:*' for -o NUM and -o LIST 2016-07-06 21:58:02 +02:00
unzip.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00