From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: dan-eli@mail.ru
Subject: BUG #18798: /src/interfaces/ecpg/preproc/type.c possible NULL deref
Date: Thu, 06 Feb 2025 11:43:44 +0000
Message-ID: <18798-456de8a9c1ea053f@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 18798
Logged by: Daniel Elishakov
Email address: dan-eli@mail.ru
PostgreSQL version: 16.6
Operating system: ubuntu 20.04
Description:
After having been compared to a NULL value at type.c:267, pointer 'ind_name'
is passed as 2nd parameter in call to function 'ECPGdump_a_simple' at
type.c:398, where it is dereferenced at type.c:423. Looks like there is
inconsistency with 'ind_name' and 'int_type' checks. In one place both are
checked. In other place only the second one is checked. It's possible that
when the second is not NULL the first is also not NULL. If this is so then
the problem is not real. But it's hard to prove this. In any case the code
needs to be made more clear.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, dan-eli@mail.ru
Subject: Re: BUG #18798: /src/interfaces/ecpg/preproc/type.c possible NULL deref
In-Reply-To: <18798-456de8a9c1ea053f@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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