Re: svn commit: r1140512 - in /subversion/trunk/subversion/mod_dav_svn: dav_svn.h liveprops.c
From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 28 Jun 2011 13:01:00 -0400
On Tue, Jun 28, 2011 at 06:26, <ivan_at_apache.org> wrote:
No way, man. This is one of the most dangerous constructs possible. If
> * subversion/mod_dav_svn/liveprops.c
The correct answer is to pass SCRATCH_POOL to this function. Don't use
Since that doesn't match the prototype in dav_hooks_liveprop, then you
> (dav_svn__insert_all_liveprops): Do not create subpool, because
Create an iterpool and pass it to the function, rather than injecting
This code is incredibly old, and doesn't follow very good pool usage.
A scratch pool in a structure will only lead to future breakage. That
Cheers,
|
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.