php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: c_stach at yahoo dot com
New email:
PHP Version: OS:

 

 [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);

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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: Fri Apr 19 07:01:27 2024 UTC