Re: BUG #2260: PGCrypto Memory Problem

Michael Fuhr <mike@fuhr.org>

From: Michael Fuhr <mike@fuhr.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Daniel Blaisdell <lunk.djedi@gmail.com>, pgsql-bugs@postgresql.org
Date: 2006-02-15T19:14:37Z
Lists: pgsql-bugs
On Wed, Feb 15, 2006 at 01:43:18PM -0500, Tom Lane wrote:
> Michael Fuhr <mike@fuhr.org> writes:
> > I can reproduce this in 8.1.3 on FreeBSD 6.0 and Solaris 9.  Here's
> > a standalone test case:
> 
> > SELECT crypt(x::text, '$1$salt') FROM generate_series(1, 500) AS g(x);
> 
> Interesting, because I see no leak with this example on Fedora 4 or
> HPUX.  Platform dependency is sounding more and more likely.

Did you test OpenSSL builds?  Both of my systems are built with
OpenSSL and that causes pgcrypto to use different code in some
places (e.g., px_find_digest() in internal.c and openssl.c).  I'll
build and test a non-OpenSSL version when I get a chance.

-- 
Michael Fuhr