opnsense-src/usr.bin/hexdump/tests
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
..
d_hexdump_a.in
d_hexdump_b.in
d_hexdump_bflag_a.out
d_hexdump_bflag_b.out
d_hexdump_bflag_c.out
d_hexdump_bug118723.in hexdump: Partial lines cannot be repetitions of earlier lines. 2023-06-08 18:39:05 -07:00
d_hexdump_c.in
d_hexdump_cflag_a.out
d_hexdump_cflag_b.out
d_hexdump_cflag_c.out
d_hexdump_dflag_a_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_dflag_a_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_dflag_b_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_dflag_b_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_dflag_c_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_dflag_c_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_nflag_a.out
d_hexdump_oflag_a_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_oflag_a_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_oflag_b_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_oflag_b_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_oflag_c_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_oflag_c_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_sflag_a.out
d_hexdump_UCflag_a.out
d_hexdump_UCflag_b.out
d_hexdump_UCflag_bug118723.out hexdump: Partial lines cannot be repetitions of earlier lines. 2023-06-08 18:39:05 -07:00
d_hexdump_UCflag_c.out
d_hexdump_UCvflag_bug118723.out hexdump: Partial lines cannot be repetitions of earlier lines. 2023-06-08 18:39:05 -07:00
d_hexdump_xflag_a_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_xflag_a_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_xflag_b_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_xflag_b_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_xflag_c_eb.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_hexdump_xflag_c_el.out hexdump: tests: take into account byte order 2020-03-02 18:40:34 +00:00
d_od_cflag_a.out od(1): Fix wrong output for some corner cases in multibyte locales. 2018-01-20 02:49:32 +00:00
d_od_cflag_b.out od(1): Fix wrong output for some corner cases in multibyte locales. 2018-01-20 02:49:32 +00:00
hexdump_test.sh hexdump: Partial lines cannot be repetitions of earlier lines. 2023-06-08 18:39:05 -07:00
Makefile hexdump: Partial lines cannot be repetitions of earlier lines. 2023-06-08 18:39:05 -07:00
Makefile.depend DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
od_test.sh spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00