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.
Branch
------
REL9_2_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/abcab2a64fb050e9ff8f4a3d9b51122c6d7baecd
Modified Files
--------------
src/interfaces/libpq/fe-connect.c | 218 +++++++++++++++++++++++++------------
1 file changed, 148 insertions(+), 70 deletions(-)