opnsense-src/usr.bin/hexdump
Xin LI d101656818 hexdump: Partial lines cannot be repetitions of earlier lines.
When checking for repetitions of earlier lines, we compare the
first nread bytes of the line against the saved line. However,
when we read a partial line, it should never be treated as a
repetition of an earlier line, even if the first bytes match.

This change fixes a bug where a partial line could be
incorrectly identified as a repetition of an earlier line.

Reported-by:	Mark Adler <madler@alumni.caltech.edu>
PR:		118723
Reviewed-by:	emaste
MFC-after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D40471
2023-06-08 18:39:05 -07:00
..
tests hexdump: Partial lines cannot be repetitions of earlier lines. 2023-06-08 18:39:05 -07:00
conv.c Silence the gcc warning: 'op' may be used uninitialized in this function 2018-01-20 15:37:47 +00:00
display.c hexdump: Partial lines cannot be repetitions of earlier lines. 2023-06-08 18:39:05 -07:00
hexdump.1 hexdump(1): Add EXAMPLES section 2020-06-29 15:15:14 +00:00
hexdump.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
hexdump.h hexdump(1): Exit gracefully on format strings missing conversion 2019-04-13 16:51:48 +00:00
hexsyntax.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
Makefile Add HAS_TESTS to all Makefiles that are currently using the 2017-08-02 08:50:42 +00:00
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
od.1 od(1): Add EXAMPLES section 2020-06-23 07:48:48 +00:00
odsyntax.c General further adoption of SPDX licensing ID tags. 2017-11-20 19:49:47 +00:00
parse.c Enable support for printing 8-byte integers. For some reason, most of the 2023-06-04 19:23:35 -07:00