[pgpool-committers: 1203] 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
------
master

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

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



More information about the pgpool-committers mailing list