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

Re: Berkeley DB verbose error messages

From: Greg Stein <gstein_at_lyra.org>
Date: 2003-09-25 22:11:19 CEST

On Thu, Sep 25, 2003 at 08:58:26PM +0200, Sander Striker wrote:
>...
> +/* Note that we 'abuse' the error prefix as a userdata field.
> + The documentation suggests that this is safe:
> +
> + http://www.sleepycat.com/docs/api_c/env_set_errpfx.html

Hmm? That says it doesn't try to copy the thing, but it doesn't say
anything about *not* treating it as a char*. IOW, as far as we know, it
might use it in some way and sticking an arbitrary pointer in there could
be badness.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 25 23:26:54 2003

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.