From ba04ba9c8293c740ea3f536e80dc37b7118e181b Mon Sep 17 00:00:00 2001 From: Stanislav Malyshev Date: Mon, 12 Sep 2011 17:50:42 +0000 Subject: [PATCH] MFB crypt fix --- ext/standard/crypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 3bac50f9e4..700811b9e6 100644 --- a/ext/standard/crypt.c +++ b/ext/standard/crypt.c @@ -179,6 +179,8 @@ PHP_FUNCTION(crypt) salt[2] = '\0'; #endif salt_in_len = strlen(salt); + } else { + salt_in_len = MIN(PHP_MAX_SALT_LEN, salt_in_len); } /* Windows (win32/crypt) has a stripped down version of libxcrypt and -- 2.50.1