postgresql/src/interfaces
Michael Paquier 0ded7615d8 ecpg: Fix NULL pointer dereference during connection lookup
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
2025-07-22 14:00:04 +09:00
..
ecpg ecpg: Fix NULL pointer dereference during connection lookup 2025-07-22 14:00:04 +09:00
libpq Fix PQport to never return NULL unless the connection is NULL. 2025-07-17 12:46:57 -04:00
libpq-oauth libpq-oauth: Add exports.list to .gitignore 2025-06-16 11:16:52 +02:00
Makefile oauth: Move the builtin flow into a separate module 2025-05-01 09:14:30 -07:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00