Re: [PATCH] selftests/net/ipsec: Fix Null pointer dereference in rtattr_pack()

2025-01-14 Thread Simon Horman
On Tue, Jan 14, 2025 at 03:43:29PM +0800, liuye wrote: > Fix the following warning. I think it is a bit more than a warning, I'd phrase this more like, even as it repeats the subject. Also, it would be nice to cite the tool that generates the warning. Address Null pointer dereference in rtatt

[PATCH] selftests/net/ipsec: Fix Null pointer dereference in rtattr_pack()

2025-01-13 Thread liuye
Fix the following warning. tools/testing/selftests/net/ipsec.c:230:25: warning: Possible null pointer dereference: payload [nullPointer] memcpy(RTA_DATA(attr), payload, size); ^ tools/testing/selftests/net/ipsec.c:1618:54: note: Calling function 'rta