Обсуждение: pgsql: Add range checks to time_recv() and timetz_recv(), to prevent

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

pgsql: Add range checks to time_recv() and timetz_recv(), to prevent

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Add range checks to time_recv() and timetz_recv(), to prevent binary input
of time values that would not be accepted via textual input.
Per gripe from Andrew McNamara.

This is potentially a back-patchable bug fix, but for the moment it doesn't
seem sufficiently high impact to justify doing that.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        date.c (r1.144 -> r1.145)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/date.c?r1=1.144&r2=1.145)