summaryrefslogtreecommitdiff
path: root/pyconfig.h.in
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-12-30 17:59:52 -0800
committerGregory P. Smith <greg@krypto.org>2018-12-30 17:59:52 -0800
commita144feeb7ec501aaf30072d50e70d54b200e5ef0 (patch)
treea650f1154811346fe4cac097b097688a28664cb1 /pyconfig.h.in
parent01b9664740307b39c2907bd84cbb0b2c35be9df4 (diff)
downloadcpython-git-a144feeb7ec501aaf30072d50e70d54b200e5ef0.tar.gz
bpo-28503: Use crypt_r() when available instead of crypt() (GH-11373) (GH-11376)
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. (cherry picked from commit 387512c7ecde6446f2e29408af2e16b9fc043807) Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
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 a82e82cc9c..4032fa519f 100644
--- a/pyconfig.h.in
+++ b/pyconfig.h.in
@@ -143,6 +143,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