summaryrefslogtreecommitdiff
path: root/src/backend/libpq/auth.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2025-07-22 14:00:08 +0900
committerMichael Paquier <michael@paquier.xyz>2025-07-22 14:00:08 +0900
commit0123922f82d2b5349917ecbd4ec197ee6acfa388 (patch)
tree658d3d1144d645fe0ce10452033604e35a16d4ad /src/backend/libpq/auth.c
parentf4a67e52b2a1a4f74297efdf3b3613b420d852f9 (diff)
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 'src/backend/libpq/auth.c')
0 files changed, 0 insertions, 0 deletions