pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: hysong0101@163.com
Subject: BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT )  will coredump
Date: Thu, 27 Apr 2023 03:44:04 +0000
Message-ID: <17909-f65c12dfc5f0451d@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      17909
Logged by:          Song Hongyu
Email address:      hysong0101@163.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.



view thread (14+ messages)  latest in thread

Message-ID: <17909-f65c12dfc5f0451d@postgresql.org>
Permalink:  ../17909-f65c12dfc5f0451d@postgresql.org/
Also on:    postgresql.org/message-id/17909-f65c12dfc5f0451d@postgresql.org

 · 

reply

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, hysong0101@163.com
  Subject: Re: BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT )  will coredump
  In-Reply-To: <17909-f65c12dfc5f0451d@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