Re: [PATCH] net/tap: avoid memcpy with NULL arg

2024-08-19 Thread Ferruh Yigit
On 8/19/2024 12:03 PM, Ferruh Yigit wrote: > On 8/14/2024 3:34 AM, Stephen Hemminger wrote: >> Calling memcpy with a null pointer even if zero length is >> undefined, so check if data_length is zero. >> Problem reported by Gcc analyzer. >> Btw, how do you run the GCC analyzer? Is this something ca

Re: [PATCH] net/tap: avoid memcpy with NULL arg

2024-08-19 Thread Ferruh Yigit
On 8/14/2024 3:34 AM, Stephen Hemminger wrote: > Calling memcpy with a null pointer even if zero length is > undefined, so check if data_length is zero. > Problem reported by Gcc analyzer. > > Signed-off-by: Stephen Hemminger > Acked-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.

[PATCH] net/tap: avoid memcpy with NULL arg

2024-08-13 Thread Stephen Hemminger
Calling memcpy with a null pointer even if zero length is undefined, so check if data_length is zero. Problem reported by Gcc analyzer. Signed-off-by: Stephen Hemminger --- drivers/net/tap/tap_netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/tap/tap_net