mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
selftests/bpf: Fix missing allocation null checks in test_progs.c
Add null checks after memory allocations to prevent potential segmentation faults. Fixes:79b4535013("tools/bpf: add a test for bpf_get_stack with tracepoint prog") Fixes:0925225956("bpf/selftests: Add granular subtest output for prog_test") Signed-off-by: Feng Yang <yangfeng@kylinos.cn> Link: https://lore.kernel.org/bpf/20260723085100.482147-4-yangfeng59949@163.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
This commit is contained in:
parent
b04b8d4e19
commit
12b362b2f0
1 changed files with 9 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue