[pgpool-committers: 1202] pgpool: Fix double free bug with on memory query cache reported in bug

Tatsuo Ishii ishii at postgresql.org
Mon Aug 5 21:28:10 JST 2013


Fix double free bug with on memory query cache reported in bug #68.

The bug occurs when multiple bind/execute messages come after a parse
message. When a parse messages comes, query context is created along
with temp cache. The pointer to the temp cache is added to the temp
cache array when the query executed. Subsequent bind messages uses the
same temp cache pointer to the cache array. This is the source of
double free bug when the cache array discarded. The solution is, reset
temp cache pointer in the query context when the temp cache buffer is
added to the cache array.

Branch
------
V3_3_STABLE

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

Modified Files
--------------
pool_memqcache.c |   21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list