Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 16 Apr 2013 23:37:37 +0200
From: Frank Dittrich <>
Subject: Re: Segfaults probably caused by DEBUG code in memory.c

On 04/16/2013 09:56 PM, jfoug wrote:
> In hindsight, in debug mode, you might have gotten the same results by doing
> this:
> #if DEBUG
> #define MEM_ALLOC_SIZE 0
> #endif

I really like this solution, because it leaves mem_alloc_tiny (which is
complex enough as it is) unchanged.

May be even better is to do this in memory.h directly:

/* turn mem_alloc_tiny() into a normal alloc,
 * to better track problems.
#define MEM_ALLOC_SIZE			0
#define MEM_ALLOC_SIZE			0x10000


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.