BUG #18888: /src/interfaces/ecpg/preproc/descriptor.c possible NULL dereference

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 #18888: /src/interfaces/ecpg/preproc/descriptor.c possible NULL dereference
Date: 2025-04-10 16:39:34
Message-ID: 18888-31bcf4436ea6a20d@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: 18888
Logged by: Daniel Elishakov
Email address: dan-eli(at)mail(dot)ru
PostgreSQL version: 17.4
Operating system: Ubuntu 20.04
Description:

On 203 and 313 lines It seems that a struct data type should not be used in
'EXEC SQL SET DESCRIPTOR' command, so the code in question should never be
executed and it is not a problem. However there are no actual checks for
corrrectess of the provided data type. It is required to add a check against
wrong data types supplied by the user.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2025-04-10 16:41:51 BUG #18889: /src/backend/utils/adt/network.c condition is always false
Previous Message PG Bug reporting form 2025-04-10 15:50:50 BUG #18887: Inner join returns non-existent data.