[pgpool-committers: 6678] pgpool: Fix for segmentation fault in PCP processor: Bug 598

Muhammad Usama m.usama at gmail.com
Thu Apr 16 19:19:09 JST 2020


Fix for segmentation fault in PCP processor: Bug 598

The crash was caused by an unconditionally pfree on buf without verifyingif it
was actually allocated or not. And freeing the but was not actually required at
the first places since the associated MemoryContext always gets resets anyway
after each loop iteration.

reference: https://www.pgpool.net/mantisbt/view.php?id=598

Branch
------
master

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

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



More information about the pgpool-committers mailing list