lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #23532] Bug in MEM.h for memory size?


From: Ron
Subject: [lwip-devel] [bug #23532] Bug in MEM.h for memory size?
Date: Tue, 10 Jun 2008 03:11:17 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

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

                 Summary: Bug in MEM.h for memory size?
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: shifted
            Submitted on: Tuesday 06/10/2008 at 03:11
                Category: None
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: 1.3.0

    _______________________________________________________

Details:

I think the following lines in the includes/lwip/mem.h file that are
currently:

/* MEM_SIZE would have to be aligned, but using 64000 here instead of
 * 65535 leaves some room for alignment...
 */
#if MEM_SIZE > 64000l
typedef u32_t mem_size_t;
#else
typedef u16_t mem_size_t;
#endif /* MEM_SIZE > 64000 */

Should read to be #if MEM_SIZE > 64001, not 640001. 640000 won't fit into an
unsigned short.

This bug is on line 66 of mem.h.






    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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