cvs: php4(PHP_4_3) /ext/mhash mhash.c

From: Date: Fri, 11 Apr 2003 02:40:28 +0000
Subject: cvs: php4(PHP_4_3) /ext/mhash mhash.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20225@lists.php.net to get a copy of this message
iliaa Thu Apr 10 22:40:28 2003 EDT Modified files: (Branch: PHP_4_3) /php4/ext/mhash mhash.c Log: MFH Index: php4/ext/mhash/mhash.c diff -u php4/ext/mhash/mhash.c:1.39.4.4 php4/ext/mhash/mhash.c:1.39.4.5 --- php4/ext/mhash/mhash.c:1.39.4.4 Fri Mar 7 08:42:15 2003 +++ php4/ext/mhash/mhash.c Thu Apr 10 22:40:28 2003 @@ -203,6 +203,10 @@ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lssl", &hash, &password, &password_len, &in_salt, &salt_len, &bytes) == FAILURE) { WRONG_PARAM_COUNT; } + if (bytes <= 0){ + php_error_docref(NULL TSRMLS_CC, E_WARNING, "the byte parameter must be greater then 0"); + RETURN_FALSE; + } salt_len = MIN(salt_len, SALT_SIZE);

« previous php.cvs (#20225) next »