BUG #17909: CREATE SCHEMA AUTHORIZATION sch CREATE TABLE foo ( id INT ) will coredump
The Post Office <noreply@postgresql.org>
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: hysong0101@163.com
Date: 2023-04-27T03:44:04Z
Lists: pgsql-bugs
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.
Commits
-
Fix crashes with CREATE SCHEMA AUTHORIZATION and schema elements
- a9212716b3bf 11.20 landed
- 63f7e91ecf9f 12.15 landed
- 7e95a33b42e7 13.11 landed
- d29eba1987cb 14.8 landed
- b9ad73ad250b 15.3 landed
- 4dadd660f071 16.0 landed