aboutsummaryrefslogtreecommitdiff
path: root/contrib/pageinspect/gistfuncs.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:10 -0700
commit6839aa7a6921d133a51e6162b9ee710ab712293d (patch)
treeefa6b3aeb91de01763a06bbdb77a4037e73bb816 /contrib/pageinspect/gistfuncs.c
parent3f7a59c59b4873a3b39838401d590f9d030a3500 (diff)
downloadpostgresql-6839aa7a6921d133a51e6162b9ee710ab712293d.tar.gz
postgresql-6839aa7a6921d133a51e6162b9ee710ab712293d.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/pageinspect/gistfuncs.c')
0 files changed, 0 insertions, 0 deletions