lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #36492] Static Analysis on code 1.4.0


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #36492] Static Analysis on code 1.4.0
Date: Tue, 29 May 2012 20:16:11 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20100101 Firefox/12.0

Follow-up Comment #8, bug #36492 (project lwip):

> NPD.CHECK.CALL.MUST : Pointer 'prev' checked for NULL at line 166 will
> be passed to function and may be dereferenced there by passing
> argument 2 to function 'ip_reass_dequeue_datagram' at line 203. :
> /home/g133009/px100/Code/lwip/src/core/ipv4/ip_frag.c : 203 :
> Critical : Analyze

And that's another problem of the static analyzer: LWIP_ASSERT is used in
function 'ip_reass_dequeue_datagram' to ensure the pointer is not null (as in
this case, the condition 'reassdatagrams == ipr' whold be true). I guess you
did not make LWIP_ASSERT correctly known as assert function to your static
analysis tool (however that may work).

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?36492>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]