BUG #18233: coerce_type accepts NULL as pstate and can pass it to coerce_record_to_complex

Lists: Postg스포츠 토토SQL : Postg스포츠 토토SQL 메일 링리스트 : 2023-12-07 이후 PGSQL-BUGS 12:49
From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: rekgrpth(at)gmail(dot)com
Subject: BUG #18233: coerce_type accepts NULL as pstate and can pass it to coerce_record_to_complex
Date: 2023-12-07 12:49:23
Message-ID: 18233-98fe3f5ee55550ff@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg스포츠 토토SQL : Postg스포츠 토토SQL 메일 링리스트 : 2023-12-07 이후 PGSQL-BUGS 12:49

The following bug has been logged on the website:

Bug reference: 18233
Logged by: RekGRpth
Email address: rekgrpth(at)gmail(dot)com
PostgreSQL version: 16.1
Operating system: all
Description:

coerce_type accepts NULL as pstate and can pass it to
coerce_record_to_complex, which passes it to GetNSItemByRangeTablePosn,
which dereferences it.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rekgrpth(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18233: coerce_type accepts NULL as pstate and can pass it to coerce_record_to_complex
Date: 2023-12-07 14:32:43
Message-ID: 1268114.1701959563@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> coerce_type accepts NULL as pstate and can pass it to
> coerce_record_to_complex, which passes it to GetNSItemByRangeTablePosn,
> which dereferences it.

Can you demonstrate any actual bug here? If so, it's not
coerce_type's, which is clearly documented to allow NULL.

regards, tom lane