From: Stanislav Malyshev Date: Mon, 12 Sep 2011 17:50:42 +0000 (+0000) Subject: MFB crypt fix X-Git-Tag: php-5.5.0alpha1~1164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba04ba9c8293c740ea3f536e80dc37b7118e181b;p=php MFB crypt fix --- 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