mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
53fc25b7f5
The malloc() function may return NULL when it fails, which may cause null pointer deference in add_cmdname(), add Null check for return value of malloc(). Found by our static analysis tool. Signed-off-by: Chenyuan Mi <cymi20@fudan.edu.cn> Acked-by: Ian Rogers <irogers@google.com> Cc: Leo Yan <leo.yan@linaro.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: linux-kernel@vger.kernel.org Link: https://lore.kernel.org/r/20230614150118.115208-1-cymi20@fudan.edu.cn Signed-off-by: Namhyung Kim <namhyung@kernel.org> |
||
---|---|---|
.. | ||
Build | ||
exec-cmd.c | ||
exec-cmd.h | ||
help.c | ||
help.h | ||
Makefile | ||
pager.c | ||
pager.h | ||
parse-options.c | ||
parse-options.h | ||
run-command.c | ||
run-command.h | ||
sigchain.c | ||
sigchain.h | ||
subcmd-config.c | ||
subcmd-config.h | ||
subcmd-util.h |