ID: 14690 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: mcrypt related Operating System: Linux PHP Version: 4.1.0 New Comment:
Can you make a backtrace for me, (with bt full)? Derick Previous Comments: ------------------------------------------------------------------------ [2001-12-25 12:00:40] [EMAIL PROTECTED] I change form lib_dir_s = Z_STRVAL_PP(lib_dir);\ if (zend_get_parameters_ex(2, &arg1, &lib_dir) == FAILURE)\ {\ WRONG_PARAM_COUNT;\ }\ convert_to_string_ex (lib_dir);\ break;\ To: if (zend_get_parameters_ex(2, &arg1, &lib_dir) == FAILURE)\ {\ WRONG_PARAM_COUNT;\ }\ convert_to_string_ex (lib_dir);\ lib_dir_s = Z_STRVAL_PP(lib_dir);\ break;\ ------------------------------------------------------------------------ [2001-12-25 11:58:17] [EMAIL PROTECTED] I can not reproduce this with 4.0.6, 4.1.0, 4.1.1dev or 4.2.0dev, and libmcrypt 2.4.18. Can you make a backtrace for me with the script you posted? And what do you want to reach with the patch you attached? regards, Derick ------------------------------------------------------------------------ [2001-12-25 11:49:39] [EMAIL PROTECTED] mcrypt_module_self_test('test','test'); ------------------------------------------------------------------------ [2001-12-25 11:45:39] [EMAIL PROTECTED] Do you have a reproducing script for me? regards, Derick ------------------------------------------------------------------------ [2001-12-25 10:02:52] [EMAIL PROTECTED] mcrypt_module_self_test, mcrypt_module_is_block_algorithm_mode, mcrypt_module_is_block_algorithm mcrypt_module_is_block_mode mcrypt_module_get_algo_block_size mcrypt_module_get_algo_key_size and all other who use MCRYPT_GET_MODE_DIR_ARGS we have segmentation if use it with second argument(module|algorithm dir). I thikg that this problem in line marked with '*': switch (argc) { \ case 2: \ * lib_dir_s = Z_STRVAL_PP(lib_dir);\ if (zend_get_parameters_ex(2, &arg1, &lib_dir) == FAILURE)\ {\ WRONG_PARAM_COUNT;\ }\ convert_to_string_ex (lib_dir);\ break;\ Patch: --- ext/mcrypt/mcrypt.c.old Tue Dec 25 15:27:39 2001 +++ ext/mcrypt/mcrypt.c Tue Dec 25 15:27:49 2001 @@ -211 +210,0 @@ - lib_dir_s = Z_STRVAL_PP(lib_dir); \ @@ -216,0 +216 @@ + lib_dir_s = Z_STRVAL_PP(lib_dir); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14690&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]