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

Started by PG Bug reporting formover 2 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 18233
Logged by: RekGRpth
Email address: rekgrpth@gmail.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.

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: PG Bug reporting form (#1)
Re: BUG #18233: coerce_type accepts NULL as pstate and can pass it to coerce_record_to_complex

PG Bug reporting form <noreply@postgresql.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