pgsql: Fix pg_tzset() to ensure that 'lclmem' (the static variable

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix pg_tzset() to ensure that 'lclmem' (the static variable
Дата
Msg-id 20060110201625.6D0BD9DC8D9@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix pg_tzset() to ensure that 'lclmem' (the static variable holding
the localtime timezone data) is not overwritten until we know the data
is good.  tzload() is capable of failing after having begun modifying
the struct it's pointed at, and in such cases the static data was left
in a corrupt state.  Bug does not exist pre-8.0 (since we didn't have
this code then) nor post-8.0 (since we already changed the code to
tzload into local variables initially).  Per report from Nick Martens.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/timezone:
        localtime.c (r1.9 -> r1.9.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/timezone/localtime.c.diff?r1=1.9&r2=1.9.4.1)

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

Предыдущее
От: neilc@postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Minor code clarity improvement: AFAICS, estate.eval_econtext must
Следующее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Improve error messages for missing-FROM-entry cases, as per