diff options
author | Michael Paquier | 2025-07-22 05:00:10 +0000 |
---|---|---|
committer | Michael Paquier | 2025-07-22 05:00:10 +0000 |
commit | 408fe659a890e54a303d7f25d9f381ea36754856 (patch) | |
tree | d3f1d4cc1157bd1e4447108662e2356a21cef66f /contrib | |
parent | 7efaf0a1b3e2ce58f4e4cddaa9afe6a60a978bcf (diff) |
ecpg: Fix NULL pointer dereference during connection lookupREL_14_STABLE
ECPGconnect() caches established connections to the server, supporting
the case of a NULL connection name when a database name is not specified
by its caller.
A follow-up call to ECPGget_PGconn() to get an established connection
from the cached set with a non-NULL name could cause a NULL pointer
dereference if a NULL connection was listed in the cache and checked for
a match. At least two connections are necessary to reproduce the issue:
one with a NULL name and one with a non-NULL name.
Author: Aleksander Alekseev <aleksander@tigerdata.com>
Discussion: https://postgr.es/m/CAJ7c6TNvFTPUTZQuNAoqgzaSGz-iM4XR61D7vEj5PsQXwg2RyA@mail.gmail.com
Backpatch-through: 13
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions