Re: [PATCH] selftests/bpf: Fix potential null pointer dereference in skb_pkt_end.c

2025-04-23 Thread Prabhav Kumar Vaish
From: Prabhav Kumar Hi Martin, Thank you for the feedback. You're right — I reviewed commit 9cc873e85800 and now understand that the test is designed to validate specific LLVM code generation, not just runtime behavior. I see how my change, although addressing the warning, could unintentional

[PATCH] selftests/bpf: Fix null pointer check in skb_pkt_end.c

2025-04-22 Thread Prabhav Kumar Vaish
Ensure that 'tcp' is checked for NULL before dereferencing. This resolves a potential null pointer dereference warning reported by static analysis. Signed-off-by: Prabhav Kumar Vaish --- tools/testing/selftests/bpf/progs/skb_pkt_end.c | 4 ++-- 1 file changed, 2 insertions(+), 2