Bug #2715: segmentation violation in mhash function interface
| From: | c_stach at yahoo dot com | Date: | Sat, 13 Nov 1999 02:03:05 +0000 |
| Subject: | Bug #2715: segmentation violation in mhash function interface | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-12430@lists.php.net to get a copy of this message | ||
From: c_stach@yahoo.com
Operating system: Linux 2.2.12 (RHS 6.1)
PHP version: 3.0.12
PHP Bug Type: mhash related
Bug description: segmentation violation in mhash function interface
Upon calling mhash(MHASH_MD5, rand()) in a php script,
Apache-1.3.9+mm-1.0.12+mysql-3.22.27+mod_ssl-2.4.8-1.3.9+php-3.0.12+rsaref-2.0-1996+openssl-0.9.4
produces a segmentation violation on line 148 of php-3.0.12/functions/mhash.c. The offending line
is a macro, but the call in the macro is estrdup.
RETVAL_STRINGL(hash_data, bsize, 1);