[Top][All Lists]

[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: Gecko/20080404 Firefox/


                 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



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

/* 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;
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:


  Message sent via/by Savannah

reply via email to

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