pgpool: Fix pgproto buffer out of range access error.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Fix pgproto buffer out of range access error.
Date: 2026-09-15 09:08:38
Message-ID: E1x6P9Z-00000004gPA-44SN@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Fix pgproto buffer out of range access error.

ASAN detected pgproto's buffer out of range access error. When it
tried to detect the continuation line (backslash + line feed), it
unconditionally access read buffer without checking the read length.

Fix is, adding buffer length check before accessing the buffer.

Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Backpatch-through: v4.3

Branch
------
master

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

Modified Files
--------------
src/tools/pgproto/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgpool-committers by date

  From Date Subject
Previous Message Tatsuo Ishii 2026-09-15 09:08:33 pgpool: Fix pgproto buffer out of range access error.