php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9564 wrong increment nrdels in PS_GC_FUNC(mm)
Submitted: 2001-03-05 11:25 UTC Modified: 2001-08-30 11:49 UTC
From: eiji at papanui dot ddt dot or dot jp Assigned:
Status: Closed Package: Session related
PHP Version: 4.0 Latest CVS (05/03/2001) OS: Any
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: eiji at papanui dot ddt dot or dot jp
New email:
PHP Version: OS:

 

 [2001-03-05 11:25 UTC] eiji at papanui dot ddt dot or dot jp
It's wrong increment nrdels in PS_GC_FUNC(mm)

'*nrdels++' incremnts nrdels as pointer,
but nrdels is allocated on the stack in php_session_start(PSLS_D).

This is a patch for a local copy of my repositry,

--- mod_mm.c    2001/01/13 10:54:33     1.1.1.2
+++ mod_mm.c    2001/03/05 16:11:46
@@ -333,7 +333,7 @@
                        ps_mm_debug("looking at %s\n", sd->key);
                        if ((now - sd->ctime) > maxlifetime) {
                                ps_sd_destroy(data, sd);
-                               *nrdels++;
+                               (*nrdels)++;
                        }
                }

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-16 17:39 UTC] sas@php.net
Thanks for your report. The specific code was changed in the past and was not affected by that bug anymore.
 [2001-08-30 11:49 UTC] eiji at papanui dot ddt dot or dot jp
Thank you for fixed this bug at revision 1.21 (19th July 2001).

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 12:01:29 2025 UTC