| From: | Taiki Koshino <koshino(at)sraoss(dot)co(dot)jp> |
|---|---|
| To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgpool: Fix response buffer pointer advancement in do_error_execute_com |
| Date: | 2026-09-18 05:10:06 |
| Message-ID: | E1x7QrO-0000000Cvsc-0CL3@gothos.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-committers |
Fix response buffer pointer advancement in do_error_execute_command
The response body is copied len bytes, but the buffer pointer was
advanced by sizeof(len). When a zero-length response body was received,
the pointer advanced by four bytes even though no body was copied,
causing subsequent saved responses to be corrupted.
Advance the pointer by len in both protocol v2 and v3 paths.
Author: Taiki Koshino <koshino(at)srasoss(dot)co(dot)jp>
Discussion: https://www.postgresql.org/message-id/OS9P286MB6486821B656397FBCD72BE5394BF2%40OS9P286MB6486.JPNP286.PROD.OUTLOOK.COM
Backpatch-through: v4.3
Branch
------
V4_6_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=2da451f98934e749a3b791664654acb3ace67041
Modified Files
--------------
src/protocol/pool_process_query.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Taiki Koshino | 2026-09-18 05:10:18 | pgpool: Fix response buffer pointer advancement in do_error_execute_com |
| Previous Message | Taiki Koshino | 2026-09-18 05:09:42 | pgpool: Fix response buffer pointer advancement in do_error_execute_com |