NetBSD/usr.bin/gzip
christos d6eaf99167 Coverity CID 1264915, Via FreeBSD (Xin Li)
When reading in the original file name from gzip header, we read
in PATH_MAX + 1 bytes from the file.  In r281500, strrchr() is
used to strip possible path portion of the file name to mitigate
a possible attack.  Unfortunately, strrchr() expects a buffer
that is NUL-terminated, and since we are processing potentially
untrusted data, we can not assert that be always true.

Solve this by reading in one less byte (now PATH_MAX) and
explicitly terminate the buffer after the read size with NUL.
2015-04-15 02:29:12 +00:00
..
Makefile Add zfgrep that fell off from last update 2013-11-13 11:12:24 +00:00
gzexe
gzexe.1
gzip.1 Document xz decompression support better. From Joachim Henke on netbsd-docs. 2015-04-06 21:41:17 +00:00
gzip.c Coverity CID 1264915, Via FreeBSD (Xin Li) 2015-04-15 02:29:12 +00:00
unbzip2.c
unpack.c
unxz.c
zdiff
zdiff.1
zforce
zforce.1
zgrep
zgrep.1
zmore fix == compatibility problem 2013-12-06 13:33:15 +00:00
zmore.1 Added zless(1) - comes in the lastest version of zmore(1) from OpenBSD 2013-11-12 21:58:37 +00:00
znew
znew.1
zuncompress.c