pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Make fallback MD5 implementation thread-safe on big-endian syste 5+ messages / 1 participants [nested] [flat]
* pgsql: Make fallback MD5 implementation thread-safe on big-endian syste @ 2024-08-07 07:51 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2024-08-07 07:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make fallback MD5 implementation thread-safe on big-endian systems Replace a static scratch buffer with a local variable, because a static buffer makes the function not thread-safe. This function is used in client-code in libpq, so it needs to be thread-safe. It was until commit b67b57a966, which replaced the implementation with the one from pgcrypto. Backpatch to v14, where we switched to the new implementation. Reviewed-by: Robert Haas, Michael Paquier Discussion: https://www.postgresql.org/message-id/dfa2015d-ad21-4802-a4cc-3850fc5fff3f@iki.fi Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a38f5f880d1e86fedf1616de5391df5f0d5e4239 Modified Files -------------- src/common/md5.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make fallback MD5 implementation thread-safe on big-endian syste @ 2024-08-07 07:51 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2024-08-07 07:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make fallback MD5 implementation thread-safe on big-endian systems Replace a static scratch buffer with a local variable, because a static buffer makes the function not thread-safe. This function is used in client-code in libpq, so it needs to be thread-safe. It was until commit b67b57a966, which replaced the implementation with the one from pgcrypto. Backpatch to v14, where we switched to the new implementation. Reviewed-by: Robert Haas, Michael Paquier Discussion: https://www.postgresql.org/message-id/dfa2015d-ad21-4802-a4cc-3850fc5fff3f@iki.fi Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2676040df0b2ebbcf8af759dbe5d34f393c3d5b5 Modified Files -------------- src/common/md5.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make fallback MD5 implementation thread-safe on big-endian syste @ 2024-08-07 07:51 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2024-08-07 07:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make fallback MD5 implementation thread-safe on big-endian systems Replace a static scratch buffer with a local variable, because a static buffer makes the function not thread-safe. This function is used in client-code in libpq, so it needs to be thread-safe. It was until commit b67b57a966, which replaced the implementation with the one from pgcrypto. Backpatch to v14, where we switched to the new implementation. Reviewed-by: Robert Haas, Michael Paquier Discussion: https://www.postgresql.org/message-id/dfa2015d-ad21-4802-a4cc-3850fc5fff3f@iki.fi Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ffac8ac48e409bbc7c2d9a4b37a1c39908ca24eb Modified Files -------------- src/common/md5.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make fallback MD5 implementation thread-safe on big-endian syste @ 2024-08-07 07:51 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2024-08-07 07:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make fallback MD5 implementation thread-safe on big-endian systems Replace a static scratch buffer with a local variable, because a static buffer makes the function not thread-safe. This function is used in client-code in libpq, so it needs to be thread-safe. It was until commit b67b57a966, which replaced the implementation with the one from pgcrypto. Backpatch to v14, where we switched to the new implementation. Reviewed-by: Robert Haas, Michael Paquier Discussion: https://www.postgresql.org/message-id/dfa2015d-ad21-4802-a4cc-3850fc5fff3f@iki.fi Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/7696b2ea52416cc2f4046a359d3b6f760e4c013d Modified Files -------------- src/common/md5.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Make fallback MD5 implementation thread-safe on big-endian syste @ 2024-08-07 07:51 Heikki Linnakangas <heikki.linnakangas@iki.fi> 0 siblings, 0 replies; 5+ messages in thread From: Heikki Linnakangas @ 2024-08-07 07:51 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Make fallback MD5 implementation thread-safe on big-endian systems Replace a static scratch buffer with a local variable, because a static buffer makes the function not thread-safe. This function is used in client-code in libpq, so it needs to be thread-safe. It was until commit b67b57a966, which replaced the implementation with the one from pgcrypto. Backpatch to v14, where we switched to the new implementation. Reviewed-by: Robert Haas, Michael Paquier Discussion: https://www.postgresql.org/message-id/dfa2015d-ad21-4802-a4cc-3850fc5fff3f@iki.fi Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0583863e9e6e9ce412bf82658d691370336fa9c0 Modified Files -------------- src/common/md5.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2024-08-07 07:51 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2024-08-07 07:51 pgsql: Make fallback MD5 implementation thread-safe on big-endian syste Heikki Linnakangas <heikki.linnakangas@iki.fi> 2024-08-07 07:51 pgsql: Make fallback MD5 implementation thread-safe on big-endian syste Heikki Linnakangas <heikki.linnakangas@iki.fi> 2024-08-07 07:51 pgsql: Make fallback MD5 implementation thread-safe on big-endian syste Heikki Linnakangas <heikki.linnakangas@iki.fi> 2024-08-07 07:51 pgsql: Make fallback MD5 implementation thread-safe on big-endian syste Heikki Linnakangas <heikki.linnakangas@iki.fi> 2024-08-07 07:51 pgsql: Make fallback MD5 implementation thread-safe on big-endian syste Heikki Linnakangas <heikki.linnakangas@iki.fi>
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