pg_regress/pg_isolation_regress: Fix possible nullptr dereference. - Mailing list pgsql-hackers

From Xing Guo
Subject pg_regress/pg_isolation_regress: Fix possible nullptr dereference.
Date
Msg-id CACpMh+A8cRvtvtOWVAZsCM1DU81GK4DL26R83y6ugZ1osV=ifA@mail.gmail.com
Whole thread Raw
Responses Re: pg_regress/pg_isolation_regress: Fix possible nullptr dereference.
List pgsql-hackers
Hi hackers,

While playing with pg_regress and pg_isolation_regress, I noticed that
there's a potential nullptr deference in both of them.

How to reproduce:

Specify the `--dbname=` option without providing any database name.

<path>/<to>/pg_regress --dbname=   foo
<path>/<to>/pg_isolation_regress --dbname=   foo

Patch is attached.

-- 
Best Regards,
Xing

Attachment

pgsql-hackers by date:

Previous
From: Noah Misch
Date:
Subject: Re: pgsql: Revoke PUBLIC CREATE from public schema, now owned by pg_databas
Next
From: Bruce Momjian
Date:
Subject: Re: New docs chapter on Transaction Management and related changes