lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #41686] ipv4 ip_reass() crash error


From: hanhui
Subject: [lwip-devel] [bug #41686] ipv4 ip_reass() crash error
Date: Tue, 25 Feb 2014 11:02:39 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.72 Safari/537.36

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

                 Summary: ipv4 ip_reass() crash error
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: hanhui03
            Submitted on: Tue Feb 25 11:02:38 2014
                Category: IPv4
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

ip_reass()
{
   ...;
   /* find the previous entry in the linked list */
   for (ipr_prev = reassdatagrams_ipv4; ipr_prev != NULL; ipr = ipr->next) {
     if (ipr_prev->next == ipr) {
       break;
     }
   }

should be:
   
   /* find the previous entry in the linked list */
   if (ipr == reassdatagrams_ipv4) {
     ipr_prev = NULL;
   } else {
     for (ipr_prev = reassdatagrams_ipv4; ipr_prev != NULL; ipr = ipr->next)
{
       if (ipr_prev->next == ipr) {
         break;
       }
     }
   }
}

Han.hui




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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