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
..
2020-01-01 12:06:37 +00:00
2021-10-02 10:39:24 -06:00
2018-11-09 14:58:24 +00:00
2021-10-02 10:39:24 -06:00
2020-04-01 15:12:51 +00:00
2021-04-01 07:31:03 +02:00
2021-10-02 10:39:24 -06:00
2021-10-02 10:39:24 -06:00
2021-04-11 09:23:14 +02:00
2021-04-11 09:23:14 +02:00
2018-11-09 14:58:24 +00:00