agora inbox for pgpool-committers@postgresql.org  
help / color / mirror / Atom feed
pgpool: Fix possible integer overflow.
6+ messages / 1 participants
[nested] [flat]

* pgpool: Fix possible integer overflow.
@ 2025-12-23 06:15  Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-12-23 06:15 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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=6b9ef60f69666057ca0f0d410431ec5b56b14...

Modified Files
--------------
src/utils/pool_stream.c | 51 +++++++++++++++++++++++++------------------------
1 file changed, 26 insertions(+), 25 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Fix possible integer overflow.
@ 2025-12-23 06:15  Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-12-23 06:15 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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=a05a93b3eeca6d476ee0ab25f27591d9c597d...

Modified Files
--------------
src/utils/pool_stream.c | 51 +++++++++++++++++++++++++------------------------
1 file changed, 26 insertions(+), 25 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Fix possible integer overflow.
@ 2025-12-23 06:15  Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-12-23 06:15 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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_5_STABLE

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

Modified Files
--------------
src/utils/pool_stream.c | 49 +++++++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 26 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Fix possible integer overflow.
@ 2025-12-23 06:15  Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-12-23 06:15 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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_6_STABLE

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

Modified Files
--------------
src/utils/pool_stream.c | 49 +++++++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 26 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Fix possible integer overflow.
@ 2025-12-23 06:15  Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-12-23 06:15 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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_7_STABLE

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

Modified Files
--------------
src/utils/pool_stream.c | 49 +++++++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 26 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* pgpool: Fix possible integer overflow.
@ 2025-12-23 06:15  Tatsuo Ishii <ishii@postgresql.org>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2025-12-23 06:15 UTC (permalink / raw)
  To: pgpool-committers@lists.postgresql.org

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=4990d8bc9a4f9e240828fab19ee233ebfbc18...

Modified Files
--------------
src/utils/pool_stream.c | 49 +++++++++++++++++++++++--------------------------
1 file changed, 23 insertions(+), 26 deletions(-)



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2025-12-23 06:15 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-23 06:15 pgpool: Fix possible integer overflow. Tatsuo Ishii <ishii@postgresql.org>
2025-12-23 06:15 pgpool: Fix possible integer overflow. Tatsuo Ishii <ishii@postgresql.org>
2025-12-23 06:15 pgpool: Fix possible integer overflow. Tatsuo Ishii <ishii@postgresql.org>
2025-12-23 06:15 pgpool: Fix possible integer overflow. Tatsuo Ishii <ishii@postgresql.org>
2025-12-23 06:15 pgpool: Fix possible integer overflow. Tatsuo Ishii <ishii@postgresql.org>
2025-12-23 06:15 pgpool: Fix possible integer overflow. Tatsuo Ishii <ishii@postgresql.org>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox