summaryrefslogtreecommitdiffstats
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorGregory P. Smith <greg@krypto.org>2018-12-30 23:42:32 (GMT)
committerGitHub <noreply@github.com>2018-12-30 23:42:32 (GMT)
commit387512c7ecde6446f2e29408af2e16b9fc043807 (patch)
tree66e991863076343981c7577cdbf2434449322f55 /pyconfig.h.in
parent1b29c03c95dbffa05f2bac0f8f1a36b21606a504 (diff)
downloadcpython-387512c7ecde6446f2e29408af2e16b9fc043807.zip
cpython-387512c7ecde6446f2e29408af2e16b9fc043807.tar.gz
cpython-387512c7ecde6446f2e29408af2e16b9fc043807.tar.bz2
bpo-28503: Use crypt_r() when available instead of crypt() (GH-11373)
Use crypt_r() when available instead of crypt() in the crypt module. As a nice side effect: This also avoids a memory sanitizer flake as clang msan doesn't know about crypt's internal libc allocated buffer.
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r--pyconfig.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in
index 254a2dc..f37ca36 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -147,6 +147,9 @@
/* Define to 1 if you have the <crypt.h> header file. */
#undef HAVE_CRYPT_H
+/* Define if you have the crypt_r() function. */
+#undef HAVE_CRYPT_R
+
/* Define to 1 if you have the `ctermid' function. */
#undef HAVE_CTERMID