[pgpool-general: 1957] Re: memory overrun bug?
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!
SRA OSS, Inc. Japan
More information about the pgpool-general