SMB_MALLOC without check

Jeremy Allison jra at samba.org
Thu Jul 24 19:55:51 GMT 2008


On Thu, Jul 24, 2008 at 09:51:07PM +0200, andreas moroder wrote:
> Hello,
> 
> in lib/util_unistr.c at line 110 and 125 memory is allocated with SMB_MALLOC
> but there is no test if NULL is returned.

At this point we're so early in the Samba setup that
we want to crash if this fails. The only other option
is to call smb_panic.

Jeremy.


More information about the samba-technical mailing list