knu 396a7859f4 Work around a buffer overflow problem on argv that has been exposed
after making test(1) a sh(1) builtin; sh(1) coredumps when you run
something like this:

	sh -c 'test ! `true 1`'

The cause is that the test(1) code totally depends on the presence of
two extra cells at the end of argv that are filled with NULL's.  The
reason why the bug hasn't been exposed would be because the C startup
code kindly prepares argv with some extra zeroed cells for a program.

I know this is not the best fix, but since there are argv++'s without
boundary checks everywhere, I'd rather patch it up like this
(preparing a copy of argv with extra NULL's) for the moment.

MFC after:	3 days
2002-02-03 10:01:49 +00:00
..
2002-02-02 06:15:22 +00:00
2002-02-02 06:15:22 +00:00
2002-02-02 06:15:22 +00:00
2002-02-02 06:24:13 +00:00
2002-02-02 06:24:13 +00:00
2002-02-02 06:24:13 +00:00
2002-02-02 06:24:13 +00:00
2002-02-02 06:36:49 +00:00
2002-02-02 06:36:49 +00:00
2002-02-02 06:36:49 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 07:10:02 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 07:09:30 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 06:48:10 +00:00
2002-02-02 07:06:58 +00:00
2002-02-02 06:50:57 +00:00
2002-02-02 06:50:57 +00:00
2002-02-02 06:50:57 +00:00
2001-03-19 18:09:56 +00:00