| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* zgrep.in: The issue with the old code is that with multiple
newlines, the N-command will read the second line of input,
then the s-commands will be skipped because it's not the end
of the file yet, then a new sed cycle starts and the pattern
space is printed and emptied. So only the last line or two get
escaped. This patch makes sed read all lines into the pattern
space and then do the escaping.
This vulnerability was discovered by:
cleemy desu wayo working with Trend Micro Zero Day Initiative
|
|
|
|
|
|
|
| |
* deflate.c (prev_length, match_start, max_chain_length, good_match):
Make these extern instead of static, reverting part of the
2021-12-01T21:46:36Z!eggert@cs.ucla.edu patch. These symbols are
used by i386 asm, and so must be extern at least for i386.
|
|
|
|
|
|
| |
* configure.ac (WERROR_CFLAGS): Disable -Wtype-limits,
due to a false alarm on platforms where 'long' is 32 bits
and time_t is 64-bit, such as recent glibc on x86.
|
|
|
|
|
| |
* bootstrap, tests/init.sh: Copy manually from current Gnulib.
* lib/.gitignore, m4/.gitignore: Update as per current Gnulib.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem reported by Antonio Diaz Diaz via Dagobert Michelsen in:
https://bugs.gnu.org/16876
* Makefile.am (.in): Substitute for 'gzip', 'zdiff', 'zgrep'.
($(GZIP_TRANSFORMED), $(ZDIFF_TRANSFORMED), $(ZGREP_TRANSFORMED)):
New rules to build forwarding shell scripts, if needed.
Add these files to BUILT_SOURCES and MOSTLY_CLEANFILES if needed.
* configure.ac (GZIP_TRANSFORMED, ZDIFF_TRANSFORMED, ZGREP_TRANSFORMED):
New substituted vars.
(GZIP_IS_TRANSFORMED, ZDIFF_IS_TRANSFORMED, ZGREP_IS_TRANSFORMED):
New Automake conditions.
* gunzip.in, gzexe.in, zcat.in, zcmp.in, zdiff.in, zegrep.in:
* zfgrep.in, zforce.in, zgrep.in, zless.in, zmore.in, znew.in:
Quote possibly-transformed subcommand names.
|
|
|
|
| |
Problem reported by Carpe Sébastien (Bug#24559).
|
|
|
|
| |
* tests/list-big: Use dd, not truncate, to create a big file.
|
|
|
|
|
|
|
| |
* tests/help-version (zmore_setup): Unset PAGER so that we test
'more', not whatever the tester has in its PAGER environment
variable. This works around a problem I found when I ran
'PAGER=less make check' on a platform that lacked 'less'.
|
|
|
|
|
|
|
|
|
| |
Problem reported by Michael Felt (Bug#30029).
* Makefile.am (ZLESS_MAN, ZLESS_PROG): New macros.
(man_MANS, bin_SCRIPTS): Use them.
* configure.ac: Check for 'less'.
* tests/Makefile.am (ZLESS_PROG): New macro.
(built_programs): Use it.
|
| |
|
|
|
|
|
| |
* doc/gzip.texi: Remove @refill to suppress warning
‘gzip.texi:562: warning: @refill is obsolete.’ from makeinfo 6.8.
|
|
|
|
|
| |
Also allow args after file names.
Problem reported by Lv Ying <https://bugs.gnu.org/54290#12>.
|
|
|
|
|
| |
Problem reported by Lv Ying (Bug#54291).
* zdiff.in (escape): Handle args like '-C 5'.
|
|
|
|
| |
Problem reported by Helge Kreutzmann (Bug#53918).
|
|
|
|
|
| |
* cfg.mk (local-checks-to-skip): Add sc_indent, to skip it.
Otherwise, "make syntax-check" would fail.
|
|
|
|
|
| |
* configure.ac (gl_GCC_VERSION_IFELSE): Copy from coreutils.
(gcc-warnings): Update from coreutils.
|
| |
|
| |
|
|
|
|
|
| |
* NEWS, doc/gzip.texi (Invoking gzip), gzip.1 (gunzip):
Document recent change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gzip -l now decompresses to see how long the uncompressed file was.
This fixes what is by far the most common bug report for gzip.
It has a significant performance cost, but it’s worth it nowadays.
* gzip.c (main): -l now sets 'test' too. All uses of
'test' changed.
(treat_stdin, treat_file): Call do_list after decompressing,
so that the length is known.
(do_list): Omit arg IFD, since it is no longer needed.
All callers changed. Get the CRC and uncompressed size
from input_crc and bytes_out instead of using lseek.
* tests/list-big: New test.
* unzip.c (unzip): Set unzip_crc before returning.
* util.c (write_buf): If 'test', output nothing.
Update bytes_out with output byte count, regardless of 'test'.
All callers changed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a symbol is extern but never used by another module, make it
static instead, or remove it if it is not used anywhere.
* Makefile.am (gzip_SOURCES): Remove lzw.c.
* bits.c (bi_buf, bi_valid) [!IBM_Z_DFLTCC]:
* deflate.c (prev_length, match_start, max_chain_length)
(good_match, lm_init):
* gzip.c (verbose) [!DEBUG]:
* unlzw.c (block_mode):
Now static.
* gzip.c (help, main, do_lzw):
* revision.h:
Simplify by assuming !LZW.
* util.c (setcrc): Define only if IBM_Z_DFLTCC.
(make_simple_name): Define only if NO_MULTIPLE_DOTS.
|
| |
|
| |
|
|
|
|
|
|
| |
* NEWS: Add header line for next release.
* .prev-version: Record previous version.
* cfg.mk (old_NEWS_hash): Auto-update.
|
|
|
|
| |
* NEWS: Record release date.
|
|
|
|
| |
* tests/hufts: Ignore more lines starting with ‘+’ in stderr.
|
|
|
|
|
|
| |
* tests/hufts, tests/zdiff:
Ignore lines starting with ‘+’ in stderr.
The NetBSD shell outputs them after set -x.
|
|
|
|
|
|
|
| |
This merges coreutils/tests/misc/help-version.sh into
gzip/tests/help-version; they're now identical except
for the initial init.sh configuration line. This
should port better to NetBSD.
|
|
|
|
|
| |
* .gitignore, lib/.gitignore, m4/.gitignore:
Bring up to date. Remove duplicates. Sort.
|
|
|
|
|
| |
Problem reported by Nelson H. F. Beebe.
* tests/two-files: Skip test if /dev/urandom is not readable.
|
| |
|
|
|
|
|
|
| |
gzip has no translatable strings, so don't include the translation
project coordinator's email address in the announcement template.
* cfg.mk (translation_project_): Define to be empty.
|
|
|
|
|
|
|
| |
* gzip.c (treat_file): Instead of saying
"gzip: FOO has 1 other link -- unchanged", say
"gzip: FOO has 1 other link -- file ignored".
This is clearer when -k is also used (Bug#50097).
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
The alignment of 8192 introduced by commit
be0c5581e38332b2ffa8a4cf92076cfde02872b4 is not quite portable:
eu-elflint --gnu-ld complains about the result gzip executable
with the following diagnostics:
section [25] '.bss' not fully contained in segment of program header entry 6
* gzip.c [__alignas_is_defined] (BUFFER_ALIGNED): Decrease alignment
from 8192 back to 4096.
|
|
|
|
|
| |
* lib/.gitignore, m4/.gitignore: Sort and modernize
to current Gnulib.
|
|
|
|
|
| |
* zgrep.in: Fix typo in option processing that prevented
operands like ‘binary-1’.
|
|
|
|
| |
* gzip.c (main): Don’t assume SIGPIPE is defined.
|
| |
|
|
|
|
|
|
|
| |
Run "make update-copyright" and then...
* gnulib: Update to latest with copyright year adjusted.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
|
|
|
|
|
| |
* configure.ac: modernize AC_TRY_COMPILE invocation
Use AC_COMPILE_IFELSE instead of AC_TRY_COMPILE.
|
|
|
|
| |
* configure.ac (AC_TYPE_SIGNAL, AC_ISC_POSIX, AC_HEADER_STDC): Remove.
|
|
|
|
|
|
| |
* configure.ac: Go back to using AC_PROG_CC rather than AC_PROG_CC_STDC,
as the latter is obsolescent and the Autoconf bug involving the former
has been fixed.
|
| |
|
|
|
|
| |
* configure.ac: Require autoconf-2.64, up from 2.63, to align with gnulib.
|
|
|
|
|
| |
It ensures that compression and decompression state of the first file
does not affect the second file.
|
|
|
|
|
| |
The value in total_in global variable from processing the first file
affected processing of the second file. Fix by making total_in local.
|
|
|
|
| |
clang does not support .machinemode, so put it under an #ifdef.
|