| 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:13 |
| Message-ID: | E1vXvft-007lhK-0t@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_4_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a05a93b3eeca6d476ee0ab25f27591d9c597d78a
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:19 | pgpool: Fix possible integer overflow. |
| Previous Message | Tatsuo Ishii | 2025-12-23 06:15:08 | pgpool: Fix possible integer overflow. |