Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/tap: avoid memcpy with null argument
Calling memcpy with a null pointer even if zero length is undefined, so check if data_length is zero. Problem reported by Gcc analyzer. Fixes: 7c25284 ("net/tap: add netlink back-end for flow API") Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Ferruh Yigit <ferruh.yigit@amd.com>
- Loading branch information