[Top][All Lists]

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

[lwip-devel] [bug #37148] memory pool content is being corrupted after m

From: Artem Pisarenko
Subject: [lwip-devel] [bug #37148] memory pool content is being corrupted after memp_free()
Date: Thu, 23 Aug 2012 08:13:18 +0000
User-agent: Opera/9.80 (Windows NT 6.1; WOW64; U; ru) Presto/2.10.289 Version/12.01

Follow-up Comment #4, bug #37148 (project lwip):

> That was not an error but an intentional decision to save memory and reuse
the data part to keep the linked list pointers
Ok. It was just suggestion because you asked "Why is pool content

But I made modification to lwip sources. I changed

 /* No sanity checks
  * We don't need to preserve the struct memp while not allocated, so we
  * can save a little space and set MEMP_SIZE to 0.
#define MEMP_SIZE           0


 /* No sanity checks
#define MEMP_SIZE           LWIP_MEM_ALIGN_SIZE(sizeof(struct memp))

Is it correct ? I'm experiencing memory-related problems right now
(particularly, memp_sanity() check). I think this could be their cause.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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