[pgpool-committers: 1300] pgpool: Fix occasional segfault in query cache + extended protocol.

Tatsuo Ishii ishii at postgresql.org
Sat Oct 19 12:47:19 JST 2013


Fix occasional segfault in query cache + extended protocol.

When the query is not "cache safe", bind_msg->param_offset was not set
in Bind(). However, Execute() unconditionally uses
bind_msg->param_offset to convert bind parameters to string so that
they can be added to the cached query string and it causes segfault
because bind_msg->param_offset is a garbage. Also logic bug to
calculate bind_msg->param_offset is corrected.

Per bug#76.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=fa4bb56004e9273c382e041946e343efe97a6433

Modified Files
--------------
src/protocol/pool_proto_modules.c |    4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list