- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit0ded761
committed
ecpg: Fix NULL pointer dereference during connection lookup
ECPGconnect() caches established connections to the server, supportingthe case of a NULL connection name when a database name is not specifiedby its caller.A follow-up call to ECPGget_PGconn() to get an established connectionfrom the cached set with a non-NULL name could cause a NULL pointerdereference if a NULL connection was listed in the cache and checked fora 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.comBackpatch-through: 131 parentf9545e9 commit0ded761
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
0 commit comments
Comments
(0)