bug-ncurses
[Top][All Lists]
Advanced

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

Re: deref/use after free


From: Thomas Dickey
Subject: Re: deref/use after free
Date: Fri, 23 Jan 2009 06:03:11 -0500 (EST)

On Fri, 23 Jan 2009, john heasley wrote:

valgrind (for Linux) tends to give better information than dmalloc,
though it still takes some study to see.

I don't use linux; it'd take some effort to use the box I can access.
I added a bunch of free(strdup("foo")) calls through the window/resizing
code to trigger the fencepost checking.  I'll poke some more; thanks
for your comments/suggestions.

ElectricFence (efence) is reasonably portable.  Before valgrind, I used
to link with efence to force a core dump close to bad memory references.
Since it covers "all" memory references, it's more general than dmalloc.
But you do need a debugger to see where/why the program died.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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