[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170815081555.104dab6e@xeon-e3>
Date: Tue, 15 Aug 2017 08:15:55 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: Phil Sutter <phil@....cc>
Cc: netdev@...r.kernel.org
Subject: Re: [iproute PATCH 21/51] lib/libnetlink: Don't pass NULL parameter
to memcpy()
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
Powered by blists - more mailing lists