hush/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_test.sh add tests for gunzip 2007-10-05 15:27:03 +00:00
bbunzip_test2.sh add tests for gunzip 2007-10-05 15:27:03 +00:00
bbunzip_test3.sh add tests for gunzip 2007-10-05 15:27:03 +00:00
bbunzip.c libarchive: fix xmalloc_open_zipped_read_close() on NOMMU 2016-06-20 11:06:42 +02:00
bzip2.c Rename transformer_aux_data_t -> transformer_state_t 2014-12-07 00:42:49 +01:00
Config.src inetd: make FEATURE_INETD_RPC off by default 2015-10-25 20:10:46 +01:00
cpio.c cpio: tweak help text 2016-07-08 12:52:24 +02:00
dpkg_deb.c dpkg: update supported compression methods 2015-01-30 15:15:38 +01:00
dpkg.c join some common strings, -400 bytes 2015-10-08 11:24:44 +02:00
gzip.c gzip: fix compression level bug. Closes 9131 2016-08-15 01:26:28 +02:00
Kbuild.src cpio: implement -R/--owner 2015-10-16 17:24:46 +02:00
lzop.c *: slap on a few ALIGN1/2s where appropriate 2016-04-22 18:09:21 +02:00
rpm.c *: add most of the required setup_common_bufsiz() calls 2016-04-21 18:18:48 +02:00
rpm.h *: make GNU licensing statement forms more regular 2010-08-16 20:14:46 +02:00
rpm2cpio.c zcat: complain if input is not compressed 2014-02-02 02:06:38 +01:00
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