postgresql/src/bin
Andres Freund 344d89abf3 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 fc49e24fa6.

Found by UBSan, run locally.

Backpatch: 11-, like fc49e24fa6 itself.
2022-03-27 18:15:14 -07:00
..
initdb Translation updates 2022-02-07 13:36:22 +01:00
pg_archivecleanup Translation updates 2022-02-07 13:36:22 +01:00
pg_basebackup Harden TAP tests that intentionally corrupt page checksums. 2022-03-25 14:23:26 -04:00
pg_checksums Harden TAP tests that intentionally corrupt page checksums. 2022-03-25 14:23:26 -04:00
pg_config Translation updates 2022-02-07 13:36:22 +01:00
pg_controldata Translation updates 2022-02-07 13:36:22 +01:00
pg_ctl Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts. 2022-03-04 18:53:17 -08:00
pg_dump Add missing dependency of pg_dumpall to WIN32RES. 2022-03-22 08:28:52 -07:00
pg_resetwal Translation updates 2022-02-07 13:36:22 +01:00
pg_rewind pg_upgrade: Upgrade an Assert to a real 'if' test 2022-03-23 19:23:51 +01:00
pg_test_fsync Translation updates 2022-02-07 13:36:22 +01:00
pg_test_timing Translation updates 2022-02-07 13:36:22 +01:00
pg_upgrade Translation updates 2022-02-07 13:36:22 +01:00
pg_verifybackup Remove PostgreSQL::Test::Utils::perl2host completely 2022-02-20 10:35:49 -05:00
pg_waldump waldump: fix use-after-free in search_directory(). 2022-03-27 18:15:14 -07:00
pgbench Remove PostgreSQL::Test::Utils::perl2host completely 2022-02-20 10:35:49 -05:00
pgevent Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
psql Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts. 2022-03-04 18:53:17 -08:00
scripts Introduce PG_TEST_TIMEOUT_DEFAULT for TAP suite non-elapsing timeouts. 2022-03-04 18:53:17 -08:00
Makefile Rename pg_validatebackup to pg_verifybackup. 2020-04-12 11:26:05 -04:00