|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2715 segmentation violation in mhash function interface
Submitted: 1999-11-12 21:03 UTC Modified: 1999-11-15 01:28 UTC
From: c_stach at yahoo dot com Assigned:
Status: Closed Package: mhash related
PHP Version: 3.0.12 OS: Linux 2.2.12 (RHS 6.1)
Private report: No CVE-ID: None
 [1999-11-12 21:03 UTC] c_stach at yahoo dot com
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);


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-15 00:10 UTC] sas at cvs dot php dot net
Which mhash version did you use?
 [1999-11-15 00:57 UTC] c_stach at yahoo dot com
Missed one package... mhash-0.5.2.
 [1999-11-15 01:28 UTC] sas at cvs dot php dot net
Ok, that is fixed in CVS now. Thanks for your report.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 06:01:26 2024 UTC