pgsql: Fix unsafe extraction of the OID part of a relation filename. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix unsafe extraction of the OID part of a relation filename.
Date
Msg-id E1f0B7N-0001X8-LR@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix unsafe extraction of the OID part of a relation filename.

Commit 8694cc96b did this randomly differently from other callers of
parse_filename_for_nontemp_relation().  Perhaps unsurprisingly,
the randomly different way is wrong; it fails to ensure the
extracted string is null-terminated.  Per buildfarm member skink.

Discussion: https://postgr.es/m/14453.1522001792@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d0c0c894533f906b13b79813f02b2982ac675074

Modified Files
--------------
src/backend/replication/basebackup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: David Steele
Date:
Subject: Re: pgsql: Exclude unlogged tables from base backups
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Exclude unlogged tables from base backups