[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mem Leak Tracer (monitored malloc)
Yedidyah Bar-David wrote:
> efence only causes buffer overruns to segv, nothing more.
>
> Eli - If you only looked at a leak detector - don't look at efence.
Thanks.
<only if my own stupid bugs interests you>
Just to CTBS: It's true that I was looking only for mem leaks detector;
However, during my tries to use njadm (New Just Another Depraved
Malloc... ;-), it found (surprise!) a real overflow! The stupid bug,
followed a "while (*ptr++ = *++str)" command, and after the end of this
loop (about 30 lines later), the NULL delimitation came: "*ptr = '\0'".
Because of alignments and other extra bytes at the end of malloced
buffers, this bug has never hit me, but thanks to NJAMD I succeeded to
find it. Unfortunately, NJAMD can't be linked with libapr (maybe
because libapr depends on libpthread even when no multi-threading is
used...), so I left it.
</only if my own stupid bugs interests you>
So you never can know where your helper will come from.
This is why I'm grateful to anybody who tries to help me; I've learned
something new from Yedidya's e-mail too.
--
Eli Marmor
marmor@netmask.it
CTO, Founder
Netmask (El-Mar) Internet Technologies Ltd.
__________________________________________________________
Tel.: +972-9-766-1020 8 Yad-Harutzim St.
Fax.: +972-9-766-1314 P.O.B. 7004
Mobile: +972-50-23-7338 Kfar-Saba 44641, Israel
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il