]> granicus.if.org Git - postgresql/commit
I noticed in the 7.4 release that in contrib/pg_autovacuum, args->logfile is
authorBruce Momjian <bruce@momjian.us>
Mon, 1 Dec 2003 23:13:07 +0000 (23:13 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 1 Dec 2003 23:13:07 +0000 (23:13 +0000)
commit15b5d6cfc64ff87070efe263f7c9b50fbb0c997f
treebdcd80f84b4f7eb5532a69c466ec78cd8a8034e3
parent5ef01a28e6c6ce25dffbaa4025293c0dceb80c81
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
contrib/pg_autovacuum/pg_autovacuum.c