Pointer arithmetic on a null pointer is undefined behavior.
The bug can be reproduced by running bin/sh/tests/builtins/wait6.0 with
UBSAN.
Differential D34011
sh: Don't add something to a null pointer Authored by jilles on Jan 23 2022, 9:28 PM. Tags None Referenced Files
Subscribers
Details
Pointer arithmetic on a null pointer is undefined behavior. The bug can be reproduced by running bin/sh/tests/builtins/wait6.0 with kyua test
Diff Detail
|