| От | Tom Lane |
|---|---|
| Тема | Re: pgcrypto: fix memory leak in openssl.c |
| Дата | |
| Msg-id | 25970.1140447947@sss.pgh.pa.us обсуждение |
| Ответ на | Re: pgcrypto: fix memory leak in openssl.c ("Marko Kreen" <markokr@gmail.com>) |
| Ответы |
Re: pgcrypto: fix memory leak in openssl.c
|
| Список | pgsql-patches |
"Marko Kreen" <markokr@gmail.com> writes:
> On 2/18/06, Marko Kreen <markokr@gmail.com> 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?
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера