Fix unsafe extraction of the OID part of a relation filename.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: d0c0c894533f906b13b79813f02b2982ac675074
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-03-25T19:15:40Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/replication/basebackup.c modified +2 −1

Discussion

Cited messages not in the archive: 14453.1522001792@sss.pgh.pa.us