pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
2+ messages / 2 participants
[nested] [flat]
* BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
@ 2025-02-06 11:47 PG Bug reporting form <noreply@postgresql.org>
2025-02-06 15:26 ` Re: BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: PG Bug reporting form @ 2025-02-06 11:47 UTC (permalink / raw)
To: pgsql-bugs@lists.postgresql.org; +Cc: dan-eli@mail.ru
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
2025-02-06 11:47 BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref PG Bug reporting form <noreply@postgresql.org>
@ 2025-02-06 15:26 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2025-02-06 15:26 UTC (permalink / raw)
To: dan-eli@mail.ru; +Cc: pgsql-bugs@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-02-06 15:26 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-02-06 11:47 BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref PG Bug reporting form <noreply@postgresql.org>
2025-02-06 15:26 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox