Re: Fix error handling in be_tls_open_server() - Mailing list pgsql-hackers

From Sergey Shinderuk
Subject Re: Fix error handling in be_tls_open_server()
Date
Msg-id 9eea4952-151c-ed94-1b7a-aedf05a34c85@postgrespro.ru
Whole thread Raw
In response to Re: Fix error handling in be_tls_open_server()  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: Fix error handling in be_tls_open_server()
List pgsql-hackers
On 24.08.2023 11:38, Daniel Gustafsson wrote:
>> On 24 Aug 2023, at 10:11, Sergey Shinderuk <s.shinderuk@postgrespro.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_exor 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/




pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Fix error handling in be_tls_open_server()
Next
From: Richard Guo
Date:
Subject: Re: Support run-time partition pruning for hash join