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

Re: SWIG svn.client.log5 and invalid revision range array

From: Roman Donchenko <DXDragon_at_yandex.ru>
Date: Mon, 28 Sep 2009 00:45:04 +0400

Blair Zajac <blair_at_orcaware.com> писал(а) в своём письме Fri, 25 Sep 2009
20:58:22 +0400:

> Trying to write a Python script that uses svn.client.log5() with 1.6.5,
> it
> appears that the SWIG wrapper doesn't handle the new apr_array_header_t
> *revsion_ranges argument. I am able to use log4() successfully.
>
> Looking at the generated binding code, the first apr_array_header_t
> *targets
> argument is handled by:
>
> arg1 = (apr_array_header_t *) svn_swig_py_strings_to_array(obj0,
> _global_pool);
>
> but the apr_array_header_t *revsion_ranges is handled by:
>
> arg3 = (apr_array_header_t *)svn_swig_MustGetPtr(obj2,
> SWIGTYPE_p_apr_array_header_t, svn_argnum_obj2);
>
> The values in the apr_array_header_t * that svn_client_log5 receives
> refer to
> invalid memory addresses.

> Is there a straightforward fix for this? I'm not familiar with SWIG and
> how to
> tell it to handle this.

A Python typemap for this type of apr_array_header_t * didn't exist. I
committed a fix in r39635.

Thanks,
Roman.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2400954
Received on 2009-09-27 22:45:43 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.