[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Segmentation faults and malloc checkers
Simon Wilkinson writes:
> However, some points of the slapd code try to read over the end of a
> malloc'd buffer, to optimize strcmp operations - electric fence traps
> this, as its a memory error. Would patches to fix this be appreciated
> (it would result in a performace hit), or is this considered to be
> acceptable?
How about
#ifdef DEBUG_MEMORY
clean code;
#else
original code;
#endif
?
--
Hallvard