freebsd-dev/usr.bin/diff/tests
Kyle Evans 43fbd65451 diff: fix segfault with --tabsize and no/malformed argument
--tabsize was previously listed as optional_argument, but didn't account for
the optionality of it in the argument handling. This is irrelevant -- the
manpage doesn't indicate that the argument is optional, and indeed there's
no clear interpretation of omitting the argument because there's no other
side effect of --tabsize.

The "malformed" argument part of the header on this message is simply
referring to usage like this:

% diff --tabsize 4 A B

With an optional_argument, the argument must be attached to the parameter
directly (e.g. --tabsize=4), so the argument is effectively NULL with the
above invocation as if no argument had been passed.

PR:		243974
Submitted by:	fehmi noyan isi <fnoyanisi yahoo com> (diff.c portion)
MFC after:	3 days
2020-02-13 20:23:55 +00:00
..
Bflag_C.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Bflag_D.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Bflag_F.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff_test.sh diff: fix segfault with --tabsize and no/malformed argument 2020-02-13 20:23:55 +00:00
group-format.out Implement a basic --changed-group-format 2017-04-20 14:22:33 +00:00
header_ns.out diff: Show nanoseconds in -u/-c header line. 2017-03-26 19:47:43 +00:00
header.out diff: Fix mtime of file1 in -u/-c header line. 2017-03-26 14:09:25 +00:00
ifdef.out Add a regression test for diff -D 2017-04-20 11:32:18 +00:00
input1.in
input2.in
input_c1.in
input_c2.in
Makefile diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Makefile.depend DIRDEPS_BUILD: Connect new directories. 2017-10-31 00:04:07 +00:00
simple_b.out
simple_e.out
simple_i.out
simple_n.out
simple_p.out
simple_u.out
simple_w.out
simple.out
unified_9999.out
unified_c9999.out
unified_p.out