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
..
2021-01-20 18:46:26 +01:00
2021-06-19 17:49:44 +02:00
2021-01-27 12:18:45 +01:00
2021-12-21 10:17:50 +01:00
2021-07-20 19:00:50 +02:00
2021-10-02 10:39:34 -06:00
2021-10-02 10:39:37 -06:00
2020-10-24 16:42:35 +00:00
2020-12-12 02:26:43 +00:00
2020-12-27 22:32:22 +01:00
2020-12-22 21:04:36 -08:00