diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-09-22 11:18:25 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2023-09-22 11:18:25 +0200 |
commit | 5f3aa309a880bb429c6a648d64e20fbd353fee8a (patch) | |
tree | 75de702245dd491868393dcebceec0ae6d8aef64 /src/test/perl/PostgreSQL/Test/Cluster.pm | |
parent | e59fcbd712c777eb2987d7c9ad542a7e817954ec (diff) | |
download | postgresql-5f3aa309a880bb429c6a648d64e20fbd353fee8a.tar.gz postgresql-5f3aa309a880bb429c6a648d64e20fbd353fee8a.zip |
Avoid potential pfree on NULL on OpenSSL errors
Guard against the pointer being NULL before pfreeing upon an error
returned from OpenSSL. Also handle errors from X509_NAME_print_ex
which can return -1 on memory allocation errors.
Backpatch down to v15 where the code was added.
Author: Sergey Shinderuk <s.shinderuk@postgrespro.ru>
Discussion: https://postgr.es/m/8db5374d-32e0-6abb-d402-40762511eff2@postgrespro.ru
Backpatch-through: v15
Diffstat (limited to 'src/test/perl/PostgreSQL/Test/Cluster.pm')
0 files changed, 0 insertions, 0 deletions