Re: BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
Дата
Msg-id 1086778.1738855562@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref  (PG Bug reporting form <noreply@postgresql.org>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Pointer, returned from function 'localtime' at timestamp.c:141, may be NULL
> and is dereferenced at timestamp.c:142.In practice this shouldn't be a
> problem, but for strictness it's better to fix this. See
> 'src/bin/initdb/findtimezone.c' for example of proper handling.

I do not see an issue here.  The only defined failure condition for
localtime() is timestamp-out-of-range, and we already checked the
range.

            regards, tom lane



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