pgsql: Fix a passel of ancient bugs in to_char(), including two distinct

Поиск
Список
Период
Сортировка
От tgl@postgresql.org (Tom Lane)
Тема pgsql: Fix a passel of ancient bugs in to_char(), including two distinct
Дата
Msg-id 20070629015221.DF7BC9FC225@postgresql.org
обсуждение исходный текст
Список pgsql-committers
Log Message:
-----------
Fix a passel of ancient bugs in to_char(), including two distinct buffer
overruns (neither of which seem likely to be exploitable as security holes,
fortunately, since the provoker can't control the data written).  One of
these is due to choosing to stomp on the output of a called function, which
is bad news in any case; make it treat the called functions' results as
read-only.  Avoid some unnecessary palloc/pfree traffic too; it's not
really helpful to free small temporary objects, and again this is presuming
more than it ought to about the nature of the results of called functions.
Per report from Patrick Welche and additional code-reading by Imad.

Tags:
----
REL7_3_STABLE

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        formatting.c (r1.56.2.3 -> r1.56.2.4)

(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/formatting.c.diff?r1=1.56.2.3&r2=1.56.2.4)

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Fix a passel of ancient bugs in to_char(), including two distinct
Следующее
От: agoldshuv@pgfoundry.org (User Agoldshuv)
Дата:
Сообщение: bizgres - bizgres: add E'' to the escape and delimiter clause in order