diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-07 10:43:52 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2024-08-07 10:44:16 +0300 |
commit | 7696b2ea52416cc2f4046a359d3b6f760e4c013d (patch) | |
tree | 0a70fe6725e2f5263fcf4806f99bada7c278f571 /src/backend/executor/spi.c | |
parent | 33965476b6ef6a37af2bc9bb1b5b2af17c35dc5e (diff) |
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
Diffstat (limited to 'src/backend/executor/spi.c')
0 files changed, 0 insertions, 0 deletions