php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25788 apache crash
Submitted: 2003-10-08 05:02 UTC Modified: 2003-11-27 01:06 UTC
From: marrtins at hackers dot lv Assigned:
Status: Not a bug Package: Session related
PHP Version: 4CVS-2003-10-08 (stable) OS: w2k sp4
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marrtins at hackers dot lv
New email:
PHP Version: OS:

 

 [2003-10-08 05:02 UTC] marrtins at hackers dot lv
Description:
------------
1st time of session_start() reproduces notice
Notice: Uninitialized string offset: 0 in d:\crash_php\index.php on line 70

2nd time crash


apache crash
Zend/zend_hash.c
------------------
ZEND_API int zend_hash_find(HashTable *ht, char *arKey, uint nKeyLength, void **pData)
...
  while (p != NULL) {
    if ((p->h == h) && (p->nKeyLength == nKeyLength)) { // <-- access violation
      if (!memcmp(p->arKey, arKey, nKeyLength)) {
        *pData = p->pData;
        return SUCCESS;
      }
    }
    p = p->pNext;
  }
  return FAILURE;
}

Reproduce code:
---------------
http://paste.php.lv/429


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-25 15:31 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2003-11-26 04:06 UTC] marrtins at hackers dot lv
sorry, the same
Notice: Uninitialized string offset: 0 in d:\crash_php\index.php on line 71

look at my submited code above on line 71
 [2003-11-27 01:06 UTC] sniper@php.net
Your script is buggy. Can not reproduce using the internal session handler.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 23:01:30 2024 UTC