freebsd-nq/bin/sh
Jilles Tjoelker 5a1a07f2a0 sh: Don't add something to a null pointer
Pointer arithmetic on a null pointer is undefined behavior.

The bug can be reproduced by running bin/sh/tests/builtins/wait6.0 with
UBSAN.

Reported by:	Mark Millard
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D34011
2022-01-26 23:13:20 +01:00
..
bltin
funcs
tests sh: Fix heredoc at certain places in case and for 2021-10-27 21:05:19 +02:00
alias.c
alias.h
arith_yacc.c
arith_yacc.h
arith_yylex.c
arith.h
builtins.def
cd.c
cd.h
dot.profile sh: Set PATH envvar after setting HOME in dotfile 2021-10-26 22:50:09 +08:00
dot.shrc sh(1): fix home/del key on mobaxterm env 2021-10-20 14:00:20 +02:00
error.c src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
error.h
eval.c src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
eval.h
exec.c sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
exec.h
expand.c
expand.h
histedit.c sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
input.c sh: Avoid some headers when NO_HISTORY is set. 2021-11-24 17:53:39 -08:00
input.h sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
jobs.c sh: Don't add something to a null pointer 2022-01-26 23:13:20 +01:00
jobs.h
mail.c
mail.h
main.c sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
main.h sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
Makefile
Makefile.depend
memalloc.c
memalloc.h
miscbltin.c read builtin: Empty variables on timeout 2021-09-24 11:34:54 -07:00
mkbuiltins
mknodes.c
mksyntax.c
mktokens
myhistedit.h
mystring.c
mystring.h
nodes.c.pat
nodetypes src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
options.c sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
options.h sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
output.c
output.h
parser.c sh: Fix heredoc at certain places in case and for 2021-10-27 21:05:19 +02:00
parser.h
profile
redir.c
redir.h
sh.1 sh: Add -o verify to use O_VERIFY when sourcing scripts 2021-09-23 10:43:09 +02:00
shell.h src/bin/sh: Fix spelling errors 2021-10-02 10:39:24 -06:00
show.c
show.h
TOUR
trap.c sh: Avoid some headers when NO_HISTORY is set. 2021-11-24 17:53:39 -08:00
trap.h
var.c
var.h