Re: pgcrypto: fix memory leak in openssl.c
От
Marko Kreen
Тема
Re: pgcrypto: fix memory leak in openssl.c
Дата
Msg-id
e51f66da0602200730y48bc9601m5099015de26947d3@mail.gmail.com
Ответ на
Re: pgcrypto: fix memory leak in openssl.c (Tom Lane)
Список
Дерево обсуждения
pgcrypto: fix memory leak in openssl.c "Marko Kreen" <markokr@gmail.com>
Re: pgcrypto: fix memory leak in openssl.c Neil Conway <neilc@samurai.com>
Re: pgcrypto: fix memory leak in openssl.c "Marko Kreen" <markokr@gmail.com>
Re: pgcrypto: fix memory leak in openssl.c Tom Lane <tgl@sss.pgh.pa.us>
Re: pgcrypto: fix memory leak in openssl.c "Marko Kreen" <markokr@gmail.com>
On 2/20/06, Tom Lane wrote: > "Marko Kreen" writes: > > On 2/18/06, Marko Kreen wrote: > >> 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+. > > > Ugh, seems I read the old code slightly wrong. The leak happens > > also with regular digest(), although it will leak only 1 context > > instance, not the 1000+ as the crypt-md5 does. > > I'm confused --- does this mean that the patch you sent recently > needs further work? No, it's fine. As I did not 'fix' old code but replaced it. It's just that I gave wrong answer to the question 'who is affected?' -- marko
В списке pgsql-patches по дате отправления