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

Re: svn commit: r1496434 - /subversion/trunk/subversion/svn/svn.c

From: Ivan Zhakov <ivan_at_visualsvn.com>
Date: Tue, 25 Jun 2013 18:43:31 +0400

On Tue, Jun 25, 2013 at 6:03 PM, Julian Foad <julianfoad_at_btopenworld.com> wrote:
> Ivan Zhakov wrote:
>
>> Bert Huijben wrote:
>>> ivan_at_apache.org wrote:
>>>> URL: http://svn.apache.org/r1496434
>>>> Log:
>>>> * subversion/svn/svn.c
>>>> (svn_cl__check_cancel): Validate passed cancel baton for better test
>>>> coverage.
>
>>>> Modified: subversion/trunk/subversion/svn/svn.c
>>>> @@ -1651,6 +1651,8 @@ signal_handler(int signum)
>>>> svn_error_t *
>>>> svn_cl__check_cancel(void *baton)
>>>> {
>>>> + /* Cancel baton should be always NULL in command line client. */
>>>> + SVN_ERR_ASSERT(baton == NULL);
>>>> if (cancelled)
>>>> return svn_error_create(SVN_ERR_CANCELLED, NULL, _("Caught signal"));
>>>> else
>>>
>>> Nice fix.
>>> I was thinking about adding this last weekend when I noticed the problem
>>> on dev_at_s.a.o.
>
> The code looks good but I don't understand the log message. We don't normally
> describe input validation as adding better "test coverage". Did you have something
> more specific in mind? What problem on dev@ is this related to?
>
It's not input validation. We were passing invalid cancel baton and
found this issue only in TortoiseSVN. See r1495850:
http://svn.apache.org/viewvc?view=revision&revision=r1495850
http://svn.haxx.se/dev/archive-2013-06/0543.shtml

-- 
Ivan Zhakov
CTO | VisualSVN | http://www.visualsvn.com
Received on 2013-06-25 16:46:00 CEST

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.