[pgpool-committers: 5337] pgpool: Fix segmentation fault occurs when a certain Bind message is se

Bo Peng pengbo at sraoss.co.jp
Tue Nov 13 11:12:23 JST 2018


Fix segmentation fault occurs when a certain Bind message is sent in native replication mode.

If the number of parameter format codes is specified to one, but the number of the original query's
parameter is zero, bind_rewrite_timestamp() will call memcpy with a negative value for size_t.
This causes segmentation fault.

Patch is provided by Yugo Nagata.
Per bug 443.

Branch
------
V3_7_STABLE

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

Modified Files
--------------
src/rewrite/pool_timestamp.c | 120 ++++++++++++++++++++++++++++---------------
1 file changed, 80 insertions(+), 40 deletions(-)



More information about the pgpool-committers mailing list