[pgpool-committers: 6676] 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
------
V3_6_STABLE

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

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



More information about the pgpool-committers mailing list