mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
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
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| doc | ||
| tests | ||
| compress.1 | ||
| compress.c | ||
| Makefile | ||
| Makefile.depend | ||
| zopen.3 | ||
| zopen.c | ||
| zopen.h | ||