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

Re: Changing svn_checksum__from_digest()'s signature

From: Greg Stein <gstein_at_gmail.com>
Date: Wed, 18 Apr 2012 02:58:43 -0400

On Apr 18, 2012 1:05 AM, "Blair Zajac" <blair_at_orcaware.com> wrote:
>
> In case of an illegal svn_checksum_kind_t being passed to
svn_checksum__from_digest(), I want to change it from
>
> svn_checksum_t *
> svn_checksum__from_digest(const unsigned char *digest,
> svn_checksum_kind_t kind,
> apr_pool_t *result_pool);
>
> to
>
> svn_error_t *
> svn_checksum__from_digest(svn_checksum_t **checksum,
> const unsigned char *digest,
> svn_checksum_kind_t kind,
> apr_pool_t *result_pool);
>
> This is to prevent a core dump we've observed with our RPC server.
>
> The function is in a public .h file but shown as private. Do I need to
add svn_checksum__from_digest2() or can I just change it?

I'd suggest moving it into private/svn_subr_private.h, and changing it to
whatever you need.

(read: it should never have been in a public .h file)

Cheers,
-g
Received on 2012-04-18 08:59:25 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.