PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> Any role with `EXECUTE` on `encrypt_iv` (granted by default when pgcrypto is
> installed) can crash the backend with a single statement:
> ```sql
> CREATE EXTENSION IF NOT EXISTS pgcrypto;
> SELECT encrypt_iv(
> repeat('A', 1073741308)::bytea,
> decode('00112233445566778899aabbccddeeff', 'hex'),
> decode('000102030405060708090a0b0c0d0e0f', 'hex'),
> 'aes'
> );
> ```
> The fix is to clear `od->owner` before calling `free_openssl_cipher` in
> `ResOwnerReleaseOSSLCipher`:
Good catch, thanks for the report!
regards, tom lane