diff options
author | Heikki Linnakangas | 2024-08-07 07:43:52 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2024-08-07 07:43:52 +0000 |
commit | 2676040df0b2ebbcf8af759dbe5d34f393c3d5b5 (patch) | |
tree | 7b38c2c72695bfde7b3c5264bbc89e5b8827a8d3 /src/backend/regex/regexec.c | |
parent | 5388216f6adc7eac20f32db33cc5ce54ef0cc930 (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/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions