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

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: dan-eli(at)mail(dot)ru
Subject: BUG #18799: /src/interfaces/ecpg/pgtypeslib/timestamp.c possible NULL deref
Date: 2025-02-06 11:47:10
Message-ID: 18799-c0cb1a5e90958485@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18799
Logged by: Daniel Elishakov
Email address: dan-eli(at)mail(dot)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.

Responses

Browse pgsql-bugs by date

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