[BusyBox] bug#1223: BusyBox] bug#1223: grep segfaults with multiple regexps and CLEAN_UP enabled

Glenn McGrath bug1 at optushome.com.au
Mon Nov 19 04:53:45 UTC 2001


On Mon, 19 Nov 2001 11:40:07 +0100
"Neal H Walfield" <neal at cs.uml.edu> wrote:

> >> dmalloc should be fixed to conform to the standard behavior.
> >
> > I completely agree, the dmalloc author doesnt.
> 
> Have you referred him to the standard?
> 
>
His comments stand for themselves, from the settings.dist file.

 * Should we allow the free of a NULL pointer and if it happens,
 * should a message be generated to that effect.  Most (if not all)
 * POSIX C libraries allow you to free() or delete() a NULL pointer
 * and a number of programming reference manuals mention that freeing
 * of NULL is ``allowed''.  However, I believe that it is bad form,
 * promotes lazy pointer handling, and can often hide program bugs.
 * As the author of dmalloc, I reserve the right to determine the
 * default action of the library to encourage code similar to the
 * following: if (pnt != NULL) { free(pnt); }





More information about the busybox mailing list