HardenedBSD/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
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
zopen.3
zopen.c uncompress: Avoid reading an extra byte 2024-10-11 09:50:09 -06:00
zopen.h