freebsd-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
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
hexdump.h
hexsyntax.c
Makefile
Makefile.depend Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
od.1
odsyntax.c
parse.c Enable support for printing 8-byte integers. For some reason, most of the 2023-06-04 19:23:35 -07:00