[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170815164255.GA10864@orbyte.nwl.cc>
Date: Tue, 15 Aug 2017 18:42:55 +0200
From: Phil Sutter <phil@....cc>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org
Subject: Re: [iproute PATCH 21/51] lib/libnetlink: Don't pass NULL parameter
to memcpy()
On Tue, Aug 15, 2017 at 08:15:55AM -0700, Stephen Hemminger wrote:
> On Sat, 12 Aug 2017 14:04:40 +0200
> Phil Sutter <phil@....cc> 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 <phil@....cc>
>
> What are you fixing. memcpy(dest, NULL, 0) should be harmless NOP
Yes, if that turns into a NOP this patch is not needed.
Thanks, Phil
Powered by blists - more mailing lists