aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2022-03-23 16:38:43 -0700
committerAndres Freund <andres@anarazel.de>2022-03-27 18:15:15 -0700
commit5ebd262dcbacddbd359d08c032fa04bfdf839b36 (patch)
treec934cf3a7c44c90a5d275a7ba646616fc0e34169 /contrib/postgres_fdw/postgres_fdw.c
parent5ca2aa2f26eaa3c355abd314aa7619f403aa4e4d (diff)
downloadpostgresql-5ebd262dcbacddbd359d08c032fa04bfdf839b36.tar.gz
postgresql-5ebd262dcbacddbd359d08c032fa04bfdf839b36.zip
waldump: fix use-after-free in search_directory().
After closedir() dirent->d_name is not valid anymore. As there alerady are a few places relying on the limited lifetime of pg_waldump, do so here as well, and just pg_strdup() the string. The bug was introduced in fc49e24fa69a. Found by UBSan, run locally. Backpatch: 11-, like fc49e24fa69 itself.
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions