malloc without check in libads

Claudia Moroder claudiamoroder at st-ulrich.suedtirol.net
Mon Jan 14 13:29:12 GMT 2002


Hi,

what about to forbid free with a macro like sprintf is forbidden ?

Bye

Andreas


-----Ursprüngliche Nachricht-----
Von: "Simo Sorce" <idra at samba.org>
An: "andreas moroder" <claudiamoroder at st-ulrich.suedtirol.net>
Cc: <samba-technical at lists.samba.org>
Gesendet: Montag, 14. Januar 2002 19:04
Betreff: Re: malloc without check in libads


> On Mon, Jan 14, 2002 at 04:28:48PM +0100, andreas moroder wrote:
> > Hello,
> >
> > in the head cvs from Mon 14.02.2002 there are a few malloc calls without
a
> > NULL check.
> >
> > in the libads directory in
> >
> > ads_struct at line 46
> >
> > krb5_setpw at lines  142 and 399
> >
> > ldap.c at lines 145, 151 and 156
> >
> > sasl.c at line 167
> >
> > free is also used instead of SAFE_FREE.
> >
> >
> > Bye
> >
> > Andreas
> >
> > P.S. Jeremy, you wrote you are religious about SAFE_FREE.
> > If I see  how many free() are around, I am sure you are not as fanatic
> > as a taliban.
> These are fileds where Tridge is working now, not Jeremy ;-)
>
>
>
> --
> Simo Sorce       idra at samba.org
> -------------------------------
> Samba Team http://www.samba.org





More information about the samba-technical mailing list