com php-src: Revert "Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify": ext/sta ndard/crypt.c
ext/standard/tests/strings/bug72703 .phpt

From: Date: Thu, 15 Sep 2016 07:38:46 +0000
Subject: com php-src: Revert "Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify": ext/sta ndard/crypt.c
ext/standard/tests/strings/bug72703 .phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94551@lists.php.net to get a copy of this message
Commit: cb49f418301b58e83dbd869a4b1f222b1a8d7208 Author: Ferenc Kovacs <tyra3l@gmail.com> Thu, 15 Sep 2016 09:38:46 +0200 Parents: b0269468ea767cafa9d700a0dc0c2b38dca9c2ee Branches: PHP-5.6.26 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=cb49f418301b58e83dbd869a4b1f222b1a8d7208 Log: Revert "Fixed bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify" This reverts commit 295303b59059536079caf68b4d76acf2149bd42c. Bugs: https://bugs.php.net/72703 Changed paths: M ext/standard/crypt.c D ext/standard/tests/strings/bug72703.phpt Diff: diff --git a/ext/standard/crypt.c b/ext/standard/crypt.c index 10f19ff..1b83d6e 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); diff --git a/ext/standard/tests/strings/bug72703.phpt b/ext/standard/tests/strings/bug72703.phpt deleted file mode 100644 index 5e3bf48..0000000 --- a/ext/standard/tests/strings/bug72703.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -Bug #72703 Out of bounds global memory read in BF_crypt triggered by password_verify ---SKIPIF-- -<?php -if (!function_exists('crypt'))) { - die("SKIP crypt() is not available"); -} -?> ---FILE-- -<?php - var_dump(password_verify("","$2y$10$$")); -?> -==OK== ---EXPECT-- -bool(false) -==OK== -

« previous php.cvs (#94551) next »