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

Ferruh Yigit ferruh.yigit at amd.com
Mon Aug 19 13:04:57 CEST 2024


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 can we add to our CI checks?


>>
>> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
>>
> 
> Acked-by: Ferruh Yigit <ferruh.yigit at amd.com>
> Applied to dpdk-next-net/main, thanks.
> 



More information about the dev mailing list