[pgpool-general: 1957] Re: memory overrun bug?

Tatsuo Ishii ishii at postgresql.org
Tue Jul 30 22:35:40 JST 2013

> I noticed what appears to be a bug in watchdog/wd_interlock.c.  In
> wd_init_interlock, a shared memory segment of size 8 is created
> (assuming a 64-bit machine).  Then a few lines later memset is called,
> clearing 40 bytes starting at that shared memory location. Shouldn't
> the allocation and memset both use "sizeof(bool) * WD_MAX_LOCK_NUM"?

Good catch. Thanks!
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

More information about the pgpool-general mailing list