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

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

From
PG Bug reporting form
Date:
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.


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