BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT ) will coredump

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: hysong0101(at)163(dot)com
Subject: BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT ) will coredump
Date: 2023-04-27 03:44:04
Message-ID: 17909-f65c12dfc5f0451d@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: 17909
Logged by: Song Hongyu
Email address: hysong0101(at)163(dot)com
PostgreSQL version: 15.0
Operating system: centos7
Description:

When we CREATE SCHEMA AUTHORIZATION rolname CREATE TABLE/SEQUENCE/VIEW
sch.obj and sch is not NULL,
the database will coredump.

The reason is in parse_utilcmd.c we will check whether schemaName and
rolname are same or not. The pointer is not checked in strcmp there, so the
database coredump is caused.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2023-04-27 07:34:23 Re: BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT ) will coredump
Previous Message PG Bug reporting form 2023-04-25 13:00:02 BUG #17908: plpython_to_hstore() crashes with a non-dict argument