|
Message-ID: <BLU0-SMTP1624AA7F6BBA45EF25F6A89FDCD0@phx.gbl> Date: Tue, 16 Apr 2013 23:37:37 +0200 From: Frank Dittrich <frank_dittrich@...mail.com> To: john-dev@...ts.openwall.com 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 > #undef MEM_ALLOC_SIZE > #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: #if DEBUG /* turn mem_alloc_tiny() into a normal alloc, * to better track problems. */ #define MEM_ALLOC_SIZE 0 #else #define MEM_ALLOC_SIZE 0x10000 Frank
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.