lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #35587] Uninitialized pointer


From: Jiri Dobry
Subject: [lwip-devel] [bug #35587] Uninitialized pointer
Date: Wed, 22 Feb 2012 10:18:12 +0000
User-agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Follow-up Comment #2, bug #35587 (project lwip):

Thanks for reaction, but I can't agree that it is invalid.

Why:
- this stack is designed mainly for embeded systems and this world have some
different rules. For example MISRA 2004 Rule Number 9.1: "All automatic
variables shall have been assigned a value before being used.". This rule have
GOOD reason:

- when we use default initializations for variables, we can have problem after
sw reinit. In this case it is clear. "next_timeout" pointer is somewhere into
lwipheap. First call of lwip_init() is correct, but second try for restart IP
stack will fail. Pointer is not initialized and need not point to same segment
as is allocated for timmers.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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