lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #36645] Calling dhcp_release before dhcp_start derefer


From: Mason
Subject: [lwip-devel] [bug #36645] Calling dhcp_release before dhcp_start dereferences NULL
Date: Wed, 13 Jun 2012 07:43:02 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120429 Firefox/12.0 SeaMonkey/2.9.1

URL:
  <http://savannah.nongnu.org/bugs/?36645>

                 Summary: Calling dhcp_release before dhcp_start dereferences
NULL
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: mason
            Submitted on: Wed 13 Jun 2012 07:43:01 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: 1.4.0

    _______________________________________________________

Details:

I suppose this should be considered a programming error, but
I'm not sure it should bring the system down.

Calling dhcp_release when dhcp_start has never been called
causes a NULL dereference (because the dhcp struct has never
been allocated).

dhcp_release calls dhcp_set_state(dhcp, DHCP_OFF);
dhcp_state( ) reads dhcp->state.
If dhcp is NULL : bam.





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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