From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Avoid unnecessary copying of a string in pg_restore.c
Date: Sun, 06 Apr 2025 13:33:01 +0000
Message-ID: <E1u1Q7R-002xyY-1Q@gemulon.postgresql.org> (raw)
Avoid unnecessary copying of a string in pg_restore.c
Coverity complained about a possible overrun in the copy, but there is
no actual need to copy the string at all.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5e1915439085014140314979c4dd5e23bd677cac
Modified Files
--------------
src/bin/pg_dump/pg_restore.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
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-committers@postgresql.org
Cc: andrew@dunslane.net, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Avoid unnecessary copying of a string in pg_restore.c
In-Reply-To: <E1u1Q7R-002xyY-1Q@gemulon.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