Re: [PATCH bpf-next 1/4] selftests/bpf: Add some null pointer checks

2024-04-24 Thread Markus Elfring
… > This patch will add the malloc failure checking … * Please use a corresponding imperative wording for the change description. * Would you like to add the tag “Fixes” accordingly? … > +++ b/tools/testing/selftests/bpf/test_progs.c > @@ -582,6 +582,11 @@ int compare_stack_ips(int smap_fd, int

[PATCH bpf-next 1/4] selftests/bpf: Add some null pointer checks

2024-04-23 Thread Kunwu Chan
There is a 'malloc' call, which can be unsuccessful. This patch will add the malloc failure checking to avoid possible null dereference. Signed-off-by: Kunwu Chan --- tools/testing/selftests/bpf/test_progs.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/testing/selftests/bpf/t