aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpython.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2006-02-18 20:48:56 +0000
committerNeil Conway <neilc@samurai.com>2006-02-18 20:48:56 +0000
commit74f615766c6edca877a8be4cc2a657a2617f90e1 (patch)
tree1cfec465b22204e861e39bdf480b6ae71fa3b095 /src/pl/plpython/plpython.c
parentf5ab0a259780d63f8de7b1734ac246afce9f369d (diff)
downloadpostgresql-74f615766c6edca877a8be4cc2a657a2617f90e1.tar.gz
postgresql-74f615766c6edca877a8be4cc2a657a2617f90e1.zip
Patch from Marko Kreen:
pgcrypto crypt()/md5 and hmac() leak memory when compiled against OpenSSL as openssl.c digest ->reset will do two DigestInit calls against a context. This happened to work with OpenSSL 0.9.6 but not with 0.9.7+. Reason for the messy code was that I tried to avoid creating wrapper structure to transport algorithm info and tried to use OpenSSL context for it. The fix is to create wrapper structure. It also uses newer digest API to avoid memory allocations on reset with newer OpenSSLs. Thanks to Daniel Blaisdell for reporting it.
Diffstat (limited to 'src/pl/plpython/plpython.c')
0 files changed, 0 insertions, 0 deletions