BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
Date
Msg-id 18799-c0cb1a5e90958485@postgresql.org
Whole thread Raw
Responses Re: BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
List pgsql-bugs
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.


pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18798: /src/interfaces/ecpg/preproc/type.c possible NULL deref
Next
From: Álvaro Herrera
Date:
Subject: Re: pg_get_constraintdef throws SQL Error [XX000]: ERROR: invalid constraint type "n" (PG17)