From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Make fallback MD5 implementation thread-safe on big-endian syste |
Date: | 2024-08-07 07:51:31 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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/[email protected]
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alexander Korotkov | 2024-08-07 08:52:13 | Re: pgsql: Introduce hash_search_with_hash_value() function |
Previous Message | Peter Eisentraut | 2024-08-07 07:28:40 | pgsql: Revert ECPG's use of pnstrdup() |