The following bug has been logged on the website: Bug reference: 18799 Logged by: Daniel Elishakov Email address: dan-eli@mail.ru PostgreSQL version: 16.6 Operating system: ubuntu 20.04 Description: 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.
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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера