I noticed in the 7.4 release that in contrib/pg_autovacuum, args->logfile is

Bruce Momjian <bruce@momjian.us>

Commit: 0bdc0a6d33c4eef8086cac077efdd66c13241fb6
Author: Bruce Momjian <bruce@momjian.us>
Date: 2003-12-01T23:14:29Z
Releases: 7.4.1
I noticed in the 7.4 release that in contrib/pg_autovacuum, args->logfile is
not initialized if a log file is not specified on the command line.  This
causes an immediate segfault on systems that fill allocated memory with some
value other than zero (my FreeBSD machine uses 0xD0).

Several crashes later I discovered that args->user, password, host, and port
are also used without being initialized.

This doesn't appear to be fixed in CVS and I came up empty on a mailing list
search -- hope it hasn't been reported already.

Craig Boston

Files

PathChange+/−
contrib/pg_autovacuum/pg_autovacuum.c modified +5 −0