Re: Incorrect allocation handling for cryptohash functions with OpenSSL - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Incorrect allocation handling for cryptohash functions with OpenSSL
Date
Msg-id 6ebe7f1f-bf37-2688-2ac1-a081d278367c@iki.fi
Whole thread Raw
In response to Re: Incorrect allocation handling for cryptohash functions with OpenSSL  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Incorrect allocation handling for cryptohash functions with OpenSSL
Re: Incorrect allocation handling for cryptohash functions with OpenSSL
List 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

pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: Re: Deadlock between backend and recovery may not be detected
Next
From: Gilles Darold
Date:
Subject: Re: [BUG] orphaned function