Обсуждение: pgsql: Fix unsafe extraction of the OID part of a relation filename.

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)