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

Ferruh Yigit ferruh.yigit at amd.com
Mon Aug 19 13:03:35 CEST 2024


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 <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