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: Jan-Henrik Haukeland
Subject: Re: [monit-dev] monit sendmail.c
Date: Mon, 18 Feb 2008 21:35:36 +0100

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





reply via email to

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