From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 4.1.0
PHP Bug Type: mcrypt related
Bug description: Crash in many functions
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 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]