php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #706 explode("\0", anystring) crashes
Submitted: 1998-08-30 14:04 UTC Modified: 2004-09-02 07:03 UTC
From: sgk at happysize dot co dot jp Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.3 OS: Solaris 2.5.1, FreeBSD 2.1.5
Private report: No CVE-ID: None
 [1998-08-30 14:04 UTC] sgk at happysize dot co dot jp
Script like

    <?
        explode("\0", "anystring");
    ?>

results in bus error or segmentation violation.
I believe that the PHP string is not a sort of C string
which is not able to contain a null \0 character.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-30 16:15 UTC] zeev
Fixed, empty delimiters are no longer allowed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 13:01:32 2024 UTC