Subject: Re: [iproute PATCH v2 2/5] nstat: Fix for potential NULL pointer dereference

From: Stephen Hemminger <[email-masked]>
Date: Fri, 18 Aug 2017 09:28:28 -0700

On Thu, 17 Aug 2017 19:09:28 +0200
Phil Sutter <[email-masked]> wrote:

> If the string at 'p' contains neither space not newline, 'p' will become
> NULL. Make sure this isn't the case before dereferencing it.
> 
> Signed-off-by: Phil Sutter <[email-masked]>

Why not fix the parsing code instead. Other places here call abort().