monit-dev
[Top][All Lists]
Advanced

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

Re: [monit-dev] monit sendmail.c


From: Martin Pala
Subject: Re: [monit-dev] monit sendmail.c
Date: Mon, 18 Feb 2008 21:38:36 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.12) Gecko/20080129 Iceape/1.1.8 (Debian-1.1.8-2)

I think i saw crash on some OS in the past, when free(0) is called ... if you are 100% sure that it will work on all systems, no problem :)

Martin


Jan-Henrik Haukeland wrote:
FYI its completely valid to call free with a NULL pointer. From the C (99) spec

"The free function causes the space pointed to by ptr to be deallocated, that is, made available for further allocation. If ptr is a null pointer, no action occurs."

On 18. feb.. 2008, at 21.15, Martin Pala wrote:

CVSROOT:    /sources/monit
Module name:    monit
Changes by:    Martin Pala <martinp>    08/02/18 20:15:52

Modified files:
    .              : sendmail.c

Log message:
revert the recent change - monit's FREE macro doesn't check for NULL ... the b64 may be NULL and if it is used as argument for free it can crash

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/monit/sendmail.c?cvsroot=monit&r1=1.56&r2=1.57



_______________________________________________
monit-dev mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/monit-dev




reply via email to

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