| From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
|---|---|
| To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgpool: Fix possible integer overflow. |
| Date: | 2025-12-23 06:15:35 |
| Message-ID: | E1vXvgF-007mC6-24@gothos.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-committers |
Fix possible integer overflow.
In pool_write_flush() and pool_flus_it() write(2) is used. write(2)
returns ssize_t and in the code there are some places where the return
value was assigned to an int variable. As a result it was possible
that the return value was evaluated to negative value, which led to an
error.
Backpatch-through: v4.3
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=4990d8bc9a4f9e240828fab19ee233ebfbc180d8
Modified Files
--------------
src/utils/pool_stream.c | 49 +++++++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 26 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2025-12-23 08:35:34 | pgpool: Fix resource leak in pcp_connect. |
| Previous Message | Tatsuo Ishii | 2025-12-23 06:15:30 | pgpool: Fix possible integer overflow. |