[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn commit: rev 1273 - trunk/subversion/libsvn_ra_dav

From: Sander Striker <striker_at_apache.org>
Date: 2002-02-14 18:00:18 CET

> From: Blair Zajac [mailto:blair@orcaware.com]
> Sent: 14 February 2002 17:35

> kevin@tigris.org wrote:
> >
> > Author: kevin
> > Date: 2002-02-14 15:23 GMT
> > New Revision: 1273
> >
> > Modified:
> > trunk/subversion/libsvn_ra_dav/fetch.c
> > Log:
> > Partially fix Issue 624. See the issue for details.
> >
> > + subdir_t *subdir = apr_palloc(pool, sizeof(*subdir));
> >
> > - subdir->rsrc = r;
> > - subdir->parent_baton = dir_baton;
> > + subdir->rsrc = r;
> > + subdir->parent_baton = dir_baton;
> >
>
> Shouldn't apr_palloc be checked for a NULL return, otherwise these next
> dereferences will core dump. Of course, there's bigger problems if there's
> no memory left, but still, for safe coding.

Nope, that goes against the coding style. And palloc has an out of mem
handler anyway.
 
> Best,
> Blair

Sander

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:07 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.