Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 b67b57a, 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] (cherry picked from commit a38f5f880d1e86fedf1616de5391df5f0d5e4239)
- Loading branch information