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 #18867: /src/interfaces/ecpg/preproc/descriptor.c usage of ECPGdump_a_type |
Date: | 2025-03-26 10:13:59 |
Message-ID: | 18867-242fff4b17a0c5be@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: 18867
Logged by: Daniel Elishakov
Email address: dan-eli(at)mail(dot)ru
PostgreSQL version: 17.4
Operating system: ubuntu 20.04
Description:
After having been assigned to a NULL value at descriptor.c:203 and
descriptor.c:313, pointer '0' is passed as 5th parameter in call to function
'ECPGdump_a_type', where it is dereferenced at type.c:332.
if (indicator_set && ind_type->type != ECPGt_struct)
mmfatal(INDICATOR_NOT_STRUCT, "indicator for struct has to be a
struct");
It seems that a struct data type should not be used in 'EXEC SQL GET
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. I think it is required to add a check agains wrong data
types supplied by the user.
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2025-03-26 10:16:53 | BUG #18868: /src/backend/optimizer/path/joinrels.c list_head can be NULL |
Previous Message | Zhijie Hou (Fujitsu) | 2025-03-26 05:07:47 | RE: BUG #18815: Logical replication worker Segmentation fault |