Re: Fix error handling in be_tls_open_server()

From: Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix error handling in be_tls_open_server()
Date: 2023-08-24 09:13:18
Message-ID: 9eea4952-151c-ed94-1b7a-aedf05a34c85@postgrespro.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 24.08.2023 11:38, Daniel Gustafsson wrote:
>> On 24 Aug 2023, at 10:11, Sergey Shinderuk <s(dot)shinderuk(at)postgrespro(dot)ru> wrote:

>> I triggered a crash by generating a certificate without a CN and forcing malloc to return NULL when called from X509_NAME_print_ex or BIO_get_mem_ptr with gdb.
>
> Can you extend the patch with that certificate and a test using it? The
> certificates are generated from config files kept in the repo in src/test/ssl
> in order to be reproducible.

But I need to force malloc to fail at the right time during the test. I
don't think I can make a stable and portable test from this.

--
Sergey Shinderuk https://postgrespro.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Guo 2023-08-24 09:27:21 Re: Support run-time partition pruning for hash join
Previous Message Daniel Gustafsson 2023-08-24 08:38:24 Re: Fix error handling in be_tls_open_server()