public inbox for [email protected]  
help / color / mirror / Atom feed
pgpool: Fix memory leak in a SSL module.
6+ messages / 1 participants
[nested] [flat]

* pgpool: Fix memory leak in a SSL module.
@ 2026-04-06 07:13 Tatsuo Ishii <[email protected]>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2026-04-06 07:13 UTC (permalink / raw)
  To: [email protected]

Fix memory leak in a SSL module.

load_dh_file() leaked memory when supplied DH parameters are not
valid.  It should have freed the memory returned by
PEM_read_DHparams() using DH_free().  The module was first imported
from PostgreSQL (commit 573bd08b99e277026e87bb55ae69c489fab321b8
2018/1/19) on 2019/6/18 by commit
51bc494aaa7fd191e14038204d18effe2efb0ec8.  PostgreSQL found the memory
leak later on and fixed it by commit
e835e89a0fd267871e7fbddc39ad00ee3d0cb55c on 2021/3/20.  So we need to
fix it as well.

While I'm at it, the copyright notice in the same file is fixed. Since
the code was copied from PostgreSQL, we should retain the original
PostgreSQL copyright notice.

Author: Tatsuo Ishii <[email protected]>
Discussion: https://www.postgresql.org/message-id/20260403.091842.102589579921239540.ishii%40postgresql.org
Backpatch-through: v4.3

Branch
------
V4_4_STABLE

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

Modified Files
--------------
src/utils/pool_ssl.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



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

* pgpool: Fix memory leak in a SSL module.
@ 2026-04-06 07:13 Tatsuo Ishii <[email protected]>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2026-04-06 07:13 UTC (permalink / raw)
  To: [email protected]

Fix memory leak in a SSL module.

load_dh_file() leaked memory when supplied DH parameters are not
valid.  It should have freed the memory returned by
PEM_read_DHparams() using DH_free().  The module was first imported
from PostgreSQL (commit 573bd08b99e277026e87bb55ae69c489fab321b8
2018/1/19) on 2019/6/18 by commit
51bc494aaa7fd191e14038204d18effe2efb0ec8.  PostgreSQL found the memory
leak later on and fixed it by commit
e835e89a0fd267871e7fbddc39ad00ee3d0cb55c on 2021/3/20.  So we need to
fix it as well.

While I'm at it, the copyright notice in the same file is fixed. Since
the code was copied from PostgreSQL, we should retain the original
PostgreSQL copyright notice.

Author: Tatsuo Ishii <[email protected]>
Discussion: https://www.postgresql.org/message-id/20260403.091842.102589579921239540.ishii%40postgresql.org
Backpatch-through: v4.3

Branch
------
V4_5_STABLE

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

Modified Files
--------------
src/utils/pool_ssl.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



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

* pgpool: Fix memory leak in a SSL module.
@ 2026-04-06 07:14 Tatsuo Ishii <[email protected]>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2026-04-06 07:14 UTC (permalink / raw)
  To: [email protected]

Fix memory leak in a SSL module.

load_dh_file() leaked memory when supplied DH parameters are not
valid.  It should have freed the memory returned by
PEM_read_DHparams() using DH_free().  The module was first imported
from PostgreSQL (commit 573bd08b99e277026e87bb55ae69c489fab321b8
2018/1/19) on 2019/6/18 by commit
51bc494aaa7fd191e14038204d18effe2efb0ec8.  PostgreSQL found the memory
leak later on and fixed it by commit
e835e89a0fd267871e7fbddc39ad00ee3d0cb55c on 2021/3/20.  So we need to
fix it as well.

While I'm at it, the copyright notice in the same file is fixed. Since
the code was copied from PostgreSQL, we should retain the original
PostgreSQL copyright notice.

Author: Tatsuo Ishii <[email protected]>
Discussion: https://www.postgresql.org/message-id/20260403.091842.102589579921239540.ishii%40postgresql.org
Backpatch-through: v4.3

Branch
------
V4_6_STABLE

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

Modified Files
--------------
src/utils/pool_ssl.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



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

* pgpool: Fix memory leak in a SSL module.
@ 2026-04-06 07:14 Tatsuo Ishii <[email protected]>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2026-04-06 07:14 UTC (permalink / raw)
  To: [email protected]

Fix memory leak in a SSL module.

load_dh_file() leaked memory when supplied DH parameters are not
valid.  It should have freed the memory returned by
PEM_read_DHparams() using DH_free().  The module was first imported
from PostgreSQL (commit 573bd08b99e277026e87bb55ae69c489fab321b8
2018/1/19) on 2019/6/18 by commit
51bc494aaa7fd191e14038204d18effe2efb0ec8.  PostgreSQL found the memory
leak later on and fixed it by commit
e835e89a0fd267871e7fbddc39ad00ee3d0cb55c on 2021/3/20.  So we need to
fix it as well.

While I'm at it, the copyright notice in the same file is fixed. Since
the code was copied from PostgreSQL, we should retain the original
PostgreSQL copyright notice.

Author: Tatsuo Ishii <[email protected]>
Discussion: https://www.postgresql.org/message-id/20260403.091842.102589579921239540.ishii%40postgresql.org
Backpatch-through: v4.3

Branch
------
V4_7_STABLE

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

Modified Files
--------------
src/utils/pool_ssl.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



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

* pgpool: Fix memory leak in a SSL module.
@ 2026-04-06 07:14 Tatsuo Ishii <[email protected]>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2026-04-06 07:14 UTC (permalink / raw)
  To: [email protected]

Fix memory leak in a SSL module.

load_dh_file() leaked memory when supplied DH parameters are not
valid.  It should have freed the memory returned by
PEM_read_DHparams() using DH_free().  The module was first imported
from PostgreSQL (commit 573bd08b99e277026e87bb55ae69c489fab321b8
2018/1/19) on 2019/6/18 by commit
51bc494aaa7fd191e14038204d18effe2efb0ec8.  PostgreSQL found the memory
leak later on and fixed it by commit
e835e89a0fd267871e7fbddc39ad00ee3d0cb55c on 2021/3/20.  So we need to
fix it as well.

While I'm at it, the copyright notice in the same file is fixed. Since
the code was copied from PostgreSQL, we should retain the original
PostgreSQL copyright notice.

Author: Tatsuo Ishii <[email protected]>
Discussion: https://www.postgresql.org/message-id/20260403.091842.102589579921239540.ishii%40postgresql.org
Backpatch-through: v4.3

Branch
------
master

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

Modified Files
--------------
src/utils/pool_ssl.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



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

* pgpool: Fix memory leak in a SSL module.
@ 2026-04-06 07:14 Tatsuo Ishii <[email protected]>
  0 siblings, 0 replies; 6+ messages in thread

From: Tatsuo Ishii @ 2026-04-06 07:14 UTC (permalink / raw)
  To: [email protected]

Fix memory leak in a SSL module.

load_dh_file() leaked memory when supplied DH parameters are not
valid.  It should have freed the memory returned by
PEM_read_DHparams() using DH_free().  The module was first imported
from PostgreSQL (commit 573bd08b99e277026e87bb55ae69c489fab321b8
2018/1/19) on 2019/6/18 by commit
51bc494aaa7fd191e14038204d18effe2efb0ec8.  PostgreSQL found the memory
leak later on and fixed it by commit
e835e89a0fd267871e7fbddc39ad00ee3d0cb55c on 2021/3/20.  So we need to
fix it as well.

While I'm at it, the copyright notice in the same file is fixed. Since
the code was copied from PostgreSQL, we should retain the original
PostgreSQL copyright notice.

Author: Tatsuo Ishii <[email protected]>
Discussion: https://www.postgresql.org/message-id/20260403.091842.102589579921239540.ishii%40postgresql.org
Backpatch-through: v4.3

Branch
------
V4_3_STABLE

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

Modified Files
--------------
src/utils/pool_ssl.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)



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


end of thread, other threads:[~2026-04-06 07:14 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-04-06 07:13 pgpool: Fix memory leak in a SSL module. Tatsuo Ishii <[email protected]>
2026-04-06 07:13 pgpool: Fix memory leak in a SSL module. Tatsuo Ishii <[email protected]>
2026-04-06 07:14 pgpool: Fix memory leak in a SSL module. Tatsuo Ishii <[email protected]>
2026-04-06 07:14 pgpool: Fix memory leak in a SSL module. Tatsuo Ishii <[email protected]>
2026-04-06 07:14 pgpool: Fix memory leak in a SSL module. Tatsuo Ishii <[email protected]>
2026-04-06 07:14 pgpool: Fix memory leak in a SSL module. Tatsuo Ishii <[email protected]>

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