Обсуждение: pgsql: Fix a potential free() of string literal in oid2name, per report

Поиск
Список
Период
Сортировка

pgsql: Fix a potential free() of string literal in oid2name, per report

От
neilc@svr1.postgresql.org (Neil Conway)
Дата:
Log Message:
-----------
Fix a potential free() of string literal in oid2name, per report from
Michael Fuhr. Along the way, fix a bunch of accesses to uninitialized
memory, add a mystrdup() routine and use it to cleanup some code.

Modified Files:
--------------
    pgsql/contrib/oid2name:
        oid2name.c (r1.25 -> r1.26)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/oid2name/oid2name.c.diff?r1=1.25&r2=1.26)