ID:               19649
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Verified
 Bug Type:         Reproducible crash
 Operating System: Linux
-PHP Version:      4.2.2
+PHP Version:      4.3.0-dev
-Assigned To:      
+Assigned To:      zeev
 New Comment:

verified & updated version.

The problem occurs because 'arg2' passed to php_browscap_parser_cb() is
NULL and there are no checks for it, which causes Z_STRLEN_P(arg2) to
core.


Previous Comments:
------------------------------------------------------------------------

[2002-09-28 10:58:17] [EMAIL PROTECTED]

An entry in browscap.ini similar to the following:
  [Mozilla/4.76 (Macintosh;US;PPC) Opera 4.?  [en]]
.. will cause Apache/PHP to fail to start (segmentation fault) due to
the nested [] symbols.

The following complete browscap.ini would be enough to reproduce this:

   [Opera 4.0]
   
   [Mozilla/4.76 (Macintosh;US;PPC) Opera 4.?  [en]]
   parent=Opera 4.0
   platform=MacPPC

Interestingly, without a correctly formed entry on the first line PHP
reports a warning instead.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=19649&edit=1

Reply via email to