Bug #14690: Crash in many functions
| From: | sitnikov at infonet dot ee | Date: | Tue, 25 Dec 2001 15:02:53 +0000 |
| Subject: | Bug #14690: Crash in many functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-74944@lists.php.net to get a copy of this message | ||
From: sitnikov@infonet.ee
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