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: Mason
Subject: [lwip-devel] [bug #36492] Static Analysis on code 1.4.0
Date: Fri, 18 May 2012 12:33:11 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120429 Firefox/12.0 SeaMonkey/2.9.1

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

"Pointer 'foo' checked for NULL at line N will be dereferenced at line M"
messages are likely all false positives, as line N is an LWIP_ASSERT, which
shall not return if the assertion does not hold.

#ifndef LWIP_NOASSERT
#define LWIP_ASSERT(message, assertion) do { if(!(assertion)) 
  LWIP_PLATFORM_ASSERT(message); } while(0)
#else  /* LWIP_NOASSERT */
#define LWIP_ASSERT(message, assertion) 
#endif /* LWIP_NOASSERT */

You need to find a way to tell your analyzer that LWIP_PLATFORM_ASSERT behaves
like assert.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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