- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit313d310
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 parent2b09054 commit313d310
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
| |||
0 commit comments
Comments
(0)