Re: Crash in pgCrypto?

From: David Fetter <david(at)fetter(dot)org>
To: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Mario Weilguni <mweilguni(at)sime(dot)com>
Subject: Re: Crash in pgCrypto?
Date: 2008-06-16 21:46:14
Message-ID: 20080616214614.GA2859@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jun 16, 2008 at 02:48:42PM -0400, Robert Treat wrote:
> On Monday 16 June 2008 09:54:16 Alvaro Herrera wrote:
> > Mario Weilguni wrote:
> > > Could someone using the pgcrypto extension please verify this?
> > >
> > > SELECT encode(digest(null, 'md5'::text), 'hex');
> > > or
> > > SELECT digest(null, 'md5');
> > >
> > > Takes a few seconds, and then crashes the server with a Signal 11. My
> > > system is PostgreSQL 8.2.7. Seems to be an unchecked access to memory
> > > location 0.
> >
> > I think the functions were made STRICT recently, and the NULL checks
> > were removed, but people with the old definitions of the functions could
> > see the crashes. Try removing pgcrypto and recompiling it from a fresh
> > release.
>
> <broken record>
> I still advocate to folks to try to put contrib modules into thier
> own schemas whenever possible, so that you have the option of doing
> pg_dump -N contribmodule, makes things like this much easier to work
> around. (And yes, I've volunteered to patch the contribs with this
> if we ever decide to make it the default setup)
> </broken record>

I, too, would be happy to do the legwork on this one. I believe we'd
want to have both per-db and per-role settings for search_path.
What's involved with creating that latter?

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2008-06-16 21:48:45 Re: Question about Encoding a Custom Type
Previous Message Andrew Dunstan 2008-06-16 21:33:00 Re: pltcl broken on tcl8.5 ?