Re: [PATCHES] contrib/pgbench bugfix

2006-07-30 Thread Tatsuo Ishii
Good catch! Thanks. I have committed your fix. -- Tatsuo Ishii SRA OSS, Inc. Japan > I found a buffer overflow bug in contrib/pgbench. > This occures when -c >= 2. > > > > The type of 'state' is CState*, so we should use state+1 or &state[1], > not state + sizeof(*state) > > > *** pgbench.c

[PATCHES] contrib/pgbench bugfix

2006-07-30 Thread ITAGAKI Takahiro
I found a buffer overflow bug in contrib/pgbench. This occures when -c >= 2. The type of 'state' is CState*, so we should use state+1 or &state[1], not state + sizeof(*state) *** pgbench.c Mon Jul 31 13:18:45 2006 --- pgbench.fixed.c Mon Jul 31 13:18:10 2006 *** main(int argc