Subject: Re: [iproute PATCH 21/51] lib/libnetlink: Don't pass NULL parameter to memcpy()

From: Stephen Hemminger <[email-masked]>
Date: Tue, 15 Aug 2017 08:15:55 -0700

On Sat, 12 Aug 2017 14:04:40 +0200
Phil Sutter <[email-masked]> wrote:

> Both addattr_l() and rta_addattr_l() may be called with NULL data
> pointer and 0 alen parameters. Avoid calling memcpy() in that case.
> 
> Signed-off-by: Phil Sutter <[email-masked]>

What are you fixing. memcpy(dest, NULL, 0) should be harmless NOP