Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2022-03-23 23:38:43 +0000
committerAndres Freund2022-03-28 01:13:50 +0000
commit264d284929e0d5a419821f94f16f766b5497c87a (patch)
tree432315466ad07f9d7ce3e1104590758e69d5f10d /src/backend/commands/variable.c
parentcc7401d5ca498a84d9b47fd2e01cebd8e830e558 (diff)
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 'src/backend/commands/variable.c')
0 files changed, 0 insertions, 0 deletions