Re: Incorrect allocation handling for cryptohash functions with OpenSSL

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Michael Paquier <michael(at)paquier(dot)xyz>, Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Incorrect allocation handling for cryptohash functions with OpenSSL
Date: 2020-12-18 09:51:55
Message-ID: 6ebe7f1f-bf37-2688-2ac1-a081d278367c@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 18/12/2020 11:35, Heikki Linnakangas wrote:
> BTW, looking at pg_cryptohash_ctx and pg_cryptohash_state, why do we
> need two structs? They're both allocated and controlled by the
> cryptohash implementation. It would seem simpler to have just one.

Something like this. Passes regression tests, but otherwise untested.

- Heikki

Attachment Content-Type Size
merge-cryptohash-ctx-and-state-structs.patch text/x-patch 10.4 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gilles Darold 2020-12-18 09:52:39 Re: [BUG] orphaned function
Previous Message Fujii Masao 2020-12-18 09:35:50 Re: Deadlock between backend and recovery may not be detected