| 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:08 |
| Message-ID: | E1vXvfn-007lcp-2r@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
------
V4_3_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=6b9ef60f69666057ca0f0d410431ec5b56b14fd8
Modified Files
--------------
src/utils/pool_stream.c | 51 +++++++++++++++++++++++++------------------------
1 file changed, 26 insertions(+), 25 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2025-12-23 06:15:13 | pgpool: Fix possible integer overflow. |
| Previous Message | pgpool-committers-owner | 2025-12-23 04:49:59 | pgpool: Tag refs/tags/V4_7_0 was created |