diff options
author | Michael Paquier <michael@paquier.xyz> | 2025-07-22 14:00:00 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2025-07-22 14:00:00 +0900 |
commit | 1b8bbee05d70deae34d0f7484afde03518c07e42 (patch) | |
tree | df1e3cb0e8209bd37d3516380113cbc725a9d66e /contrib/rtree_gist/README.rtree_gist | |
parent | e2debb64380ebcf0979708a0fa88d9c8d924005b (diff) | |
download | postgresql-1b8bbee05d70deae34d0f7484afde03518c07e42.tar.gz postgresql-1b8bbee05d70deae34d0f7484afde03518c07e42.zip |
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
Diffstat (limited to 'contrib/rtree_gist/README.rtree_gist')
0 files changed, 0 insertions, 0 deletions