pgsql: Check return value of strdup() in libpq connection option parsin

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Check return value of strdup() in libpq connection option parsin
Дата
Msg-id E1XtG3o-0002Ze-SV@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/811015ff9aafd2d5e03fbd931f7c6102b3d6516a

Modified Files
--------------
src/interfaces/libpq/fe-connect.c |  132 +++++++++++++++++++++++++++++++------
1 file changed, 113 insertions(+), 19 deletions(-)


В списке pgsql-committers по дате отправления: