summaryrefslogtreecommitdiff
path: root/ext/standard/crypt.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-09-10 02:39:28 +0200
committerAnatol Belski <ab@php.net>2016-09-10 02:39:28 +0200
commit669fda00b75a0d361810429e0ef53f6c740b1727 (patch)
treee83ecf98218dcac650940c3328a890f125f2658b /ext/standard/crypt.c
parentc42a7f2f3fdac5c71300e52b0f639d771791f20c (diff)
downloadphp-git-669fda00b75a0d361810429e0ef53f6c740b1727.tar.gz
Bug #73058 crypt broken when salt is 'too' long
Diffstat (limited to 'ext/standard/crypt.c')
-rw-r--r--ext/standard/crypt.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c
index 10f19ff113..1b83d6e127 100644
--- a/ext/standard/crypt.c
+++ b/ext/standard/crypt.c
@@ -201,14 +201,6 @@ PHPAPI int php_crypt(const char *password, const int pass_len, const char *salt,
salt[5] >= '0' && salt[5] <= '9' &&
salt[6] == '$') {
char output[PHP_MAX_SALT_LEN + 1];
- int k = 7;
-
- while (isalnum(salt[k]) || '.' == salt[k] || '/' == salt[k]) {
- k++;
- }
- if (k != salt_len) {
- return FAILURE;
- }
memset(output, 0, PHP_MAX_SALT_LEN + 1);