[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Potential NULL pointer access in ip4_frag.c
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] Potential NULL pointer access in ip4_frag.c |
Date: |
Wed, 26 Apr 2017 10:45:06 +0200 |
Andreas Dinter wrote:
> ../../../lwIp/src/core/ipv4/ip4_frag.c:327:16: warning: potential null
> pointer dereference [-Wnull-dereference]
> This refers to this line: prev->next = ipr->next;
As far as I can tell, that line does not match any released versions of lwIP.
> In function: ip_reass_dequeue_datagram()
> I am using version 6.3.1 of GGC.
> Can you please comment on this warning?
To me this warning seems invalid. At least with the current version, 'ipr' has
been dereferenced before in all calling code paths and 'prev' is checked via an
assert.
Simon