pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: libpq: Use strerror_r instead of strerror
7+ messages / 1 participants
[nested] [flat]

* pgsql: libpq: Use strerror_r instead of strerror
@ 2024-07-28 08:29 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2024-07-28 08:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1e666fd7c6d3bff658cdbad02b4e7bb77dde391d

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)



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

* pgsql: libpq: Use strerror_r instead of strerror
@ 2024-07-28 08:29 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2024-07-28 08:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/821fbd63eab0c35c034e83d278da7244cf1be463

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)



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

* pgsql: libpq: Use strerror_r instead of strerror
@ 2024-07-28 08:29 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2024-07-28 08:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/c53016860b8e9c7d511efa86d6368456340343f5

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)



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

* pgsql: libpq: Use strerror_r instead of strerror
@ 2024-07-28 08:29 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2024-07-28 08:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6ddc8556ce4aff68446ebe00f14930bc0bbeccca

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)



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

* pgsql: libpq: Use strerror_r instead of strerror
@ 2024-07-28 08:29 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2024-07-28 08:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/95e805e9cabeaf8bbf5b27e17763b44fbd85a686

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)



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

* pgsql: libpq: Use strerror_r instead of strerror
@ 2024-07-28 08:29 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2024-07-28 08:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/da5d7a7712549067c04aac013d95d929a8318785

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)



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

* pgsql: libpq: Use strerror_r instead of strerror
@ 2024-07-28 08:29 Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 0 replies; 7+ messages in thread

From: Peter Eisentraut @ 2024-07-28 08:29 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

libpq: Use strerror_r instead of strerror

Commit 453c4687377 introduced a use of strerror() into libpq, but that
is not thread-safe.  Fix by using strerror_r() instead.

In passing, update some of the code comments added by 453c4687377, as
we have learned more about the reason for the change in OpenSSL that
started this.

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: Discussion: https://postgr.es/m/b6fb018b-f05c-4afd-abd3-318c649faf18@highgo.ca

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4070489999fdc230e7cc390e2fb63cd2a87c7d97

Modified Files
--------------
src/backend/libpq/be-secure-openssl.c    |  9 +++++----
src/interfaces/libpq/fe-secure-openssl.c | 11 ++++++-----
2 files changed, 11 insertions(+), 9 deletions(-)



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


end of thread, other threads:[~2024-07-28 08:29 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-07-28 08:29 pgsql: libpq: Use strerror_r instead of strerror Peter Eisentraut <peter@eisentraut.org>
2024-07-28 08:29 pgsql: libpq: Use strerror_r instead of strerror Peter Eisentraut <peter@eisentraut.org>
2024-07-28 08:29 pgsql: libpq: Use strerror_r instead of strerror Peter Eisentraut <peter@eisentraut.org>
2024-07-28 08:29 pgsql: libpq: Use strerror_r instead of strerror Peter Eisentraut <peter@eisentraut.org>
2024-07-28 08:29 pgsql: libpq: Use strerror_r instead of strerror Peter Eisentraut <peter@eisentraut.org>
2024-07-28 08:29 pgsql: libpq: Use strerror_r instead of strerror Peter Eisentraut <peter@eisentraut.org>
2024-07-28 08:29 pgsql: libpq: Use strerror_r instead of strerror Peter Eisentraut <peter@eisentraut.org>

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