1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-30 08:19:09 +00:00
freebsd/usr.bin/compress
David Jones 818c7b769a uncompress: Avoid reading an extra byte
When reading the next code in a stream, avoid reading an extra byte if
we're going to throw it away. When there's no more bits to extract from
the stream, bits will be 0 and we'll mask the read byte with 0 anyway.
At worst, this will avoid reading one past the end of gbuf array (which
is not possible in well formed streams).

PR: 127912
Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D47041
2024-10-11 09:50:09 -06:00
..
doc sccs: Manual changes 2023-11-26 22:23:58 -07:00
tests Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
compress.1 usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
compress.c Remove copyright strings ifdef'd out 2023-11-26 22:23:58 -07:00
Makefile Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
zopen.3 usr.bin: Remove ancient SCCS tags. 2023-11-26 22:23:30 -07:00
zopen.c uncompress: Avoid reading an extra byte 2024-10-11 09:50:09 -06:00
zopen.h Remove $FreeBSD$: two-line .h pattern 2023-08-16 11:54:16 -06:00