[pgpool-committers: 1204] 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_2_STABLE

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

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



More information about the pgpool-committers mailing list