]> granicus.if.org Git - postgresql/commit
Fix unsafe extraction of the OID part of a relation filename.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2018 19:15:32 +0000 (15:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2018 19:15:40 +0000 (15:15 -0400)
commitd0c0c894533f906b13b79813f02b2982ac675074
tree5ee83f3b5c5769477ae735bc274179a43d4580ea
parentbf4a8676c316c177f395b54d3305ea4ccc838a66
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
src/backend/replication/basebackup.c