pgsql: Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the
Дата
Msg-id 20081110145746.8E5617545A4@cvs.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the BIO_s_mem buffer
it was using too soon.  In a situation where pg_do_encoding_conversion is
a no-op, this led to garbage data returned.

In HEAD, also modify the code that's ensuring null termination to make it
a tad more obvious what's happening.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
    pgsql/contrib/sslinfo:
        sslinfo.c (r1.6 -> r1.6.2.1)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/sslinfo/sslinfo.c?r1=1.6&r2=1.6.2.1)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix old bug in contrib/sslinfo: X509_NAME_to_text freed the