Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX
Дата
Msg-id CAB7nPqT5HaT0nsWqCFfnvQQWW6XXdcyX61xnsTz9dVP2RkEEPw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: pgcrypto compilation error due to stack-allocated EVP_CIPHER_CTX  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
On Mon, Dec 5, 2016 at 5:11 PM, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> I'm afraid if we just start using EVP_CIPHER_CTX_new(), we'll leak the
> context on any error. We had exactly the same problem with EVP_MD_CTX_init
> being removed, in the patch that added OpenSSL 1.1.0 support. We'll have to
> use a resource owner to track it, just like we did with EVP_MD_CTX in commit
> 593d4e47. Want to do that, or should I?

I'll send a patch within 24 hours.
-- 
Michael



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: commitfest 2016-11 status summary
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: UNDO and in-place update