| From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
|---|---|
| To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgpool: Fix to use snprintf() instead of strlcpy() in pgproto. |
| Date: | 2026-11-09 01:47:05 |
| Message-ID: | E1xQETR-0000000G4R2-2bu2@gothos.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-committers |
Fix to use snprintf() instead of strlcpy() in pgproto.
Commit 1f40c4fe7 modified pgproto to use strlcpy() to generate the v2
protocol startup packet. Unfortunately strlcpy() is only available in
glibc 2.38 or after, which is provided by Red Hat 10 or newer. Thus
Red Hat 8 or 9 failed to build pgproto.
This commit replaces strlcpy() with snprintf().
Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Backpatch-through: master only
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=178b06ff37b6e61587fb16d2088bb06cbe182daf
Modified Files
--------------
src/tools/pgproto/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2026-11-13 01:14:28 | pgpool: Fix segfault when a watchdog sync changes the primary under run |
| Previous Message | Tatsuo Ishii | 2026-11-06 10:59:56 | pgpool: Feature: remove frontend/backend protocol v2 support. |