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