php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27033 calling preg_match at _very_ specific points, will cause apache to crash
Submitted: 2004-01-24 18:43 UTC Modified: 2004-01-31 23:15 UTC
From: ask at eternal-newbie dot dk Assigned:
Status: No Feedback Package: PCRE related
PHP Version: 4.3.4 OS: linux
Private report: No CVE-ID: None
 [2004-01-24 18:43 UTC] ask at eternal-newbie dot dk
Description:
------------
in my functions.php (http://wiki.dgsnet.dk/functions.phps) i got a class called user with a function called in_group(). This function calls a global function called isint();, this function uses preg_match. If the in_group() function is called from withith the global makeoutput function or from a function called from without the makeoutput function. the the call in in_group() to isint() will cause the apache child to crash. i cannot get a gdb file, since it's the child and not the parant server which is crashing. However the log states clearly that it returns a segmentation fault. 

I might need to note that in_group is being called several times before makeoutput() is started and that works fine.

Reproduce code:
---------------
http://wiki.dgsnet.dk/functions.phps

Expected result:
----------------
that apache/php didn't crash.

Actual result:
--------------
see description.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-31 23:15 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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 06 13:01:27 2024 UTC