[PATCH] Fix possible crash bugs in tdb code.

Jeremy Allison jra at samba.org
Mon Nov 19 18:06:26 GMT 2007


On Mon, Nov 19, 2007 at 04:25:33PM +0100, Volker Lendecke wrote:
> On Mon, Nov 19, 2007 at 04:12:58PM +0100, Andreas Schneider wrote:
> > a corrupted tdb led to a segauflt here as the tdb functions don't check if a
> > null pointer is passed. Patch attached.
> 
> Can't you fix the callers? Passing NULL as tdb_ctx *should*
> IMHO lead to a segfault.

+1 from me. Yes we need to segfault in this case.

Jeremy.


More information about the samba-technical mailing list