]> granicus.if.org Git - postgresql/commit
Check return value of strdup() in libpq connection option parsing.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 25 Nov 2014 10:55:00 +0000 (12:55 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 25 Nov 2014 12:10:22 +0000 (14:10 +0200)
commit811015ff9aafd2d5e03fbd931f7c6102b3d6516a
tree6ab7da6f43448423f7a3d17a5588b6f115a4ee99
parent3852eaba10bdcd8eafa5e64dbd853dc5c50e134c
Check return value of strdup() in libpq connection option parsing.

An out-of-memory in most of these would lead to strange behavior, like
connecting to a different database than intended, but some would lead to
an outright segfault.

Alex Shulgin and me. Backpatch to all supported versions.
src/interfaces/libpq/fe-connect.c