php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3421 segfault when setting long cookies
Submitted: 2000-02-07 17:09 UTC Modified: 2000-02-07 18:38 UTC
From: philip dot day at edt dot ericsson dot se Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0 Beta 3 OS: Linux Mandrake 7.0 (2.2.14)
Private report: No CVE-ID: None
 [2000-02-07 17:09 UTC] philip dot day at edt dot ericsson dot se
this script will crash apache every time.  Shorten it by a few chars and the segfault disappears.

<?php 
$string='xxx%3Bs%3A2%3A%2212%22%3Bi%3A13%3Bi%3A1%3Bi%3A17%3Bi%3A1%3Bi%3A20%3Bi%3A1%3Bi%3A11%3Bi%3A1%3Bi%3A14%3Bi%3A1%3Bi%3A15%3Bi%3A1%3Bi%3A16%3Bi%3A1%3Bi%3A21%3Bi%3A1%3Bi%3A24%3Bi%3A1%3Bi%3A23%3Bi%3A1%3Bi%3A26%3Bi%3A1%3B%7D';
SetCookie("test",$string,0);
?>
<HTML><HEAD><TITLE>bug</TITLE></HEAD>
<body>string length is:
<?php
print strlen($string);
?>
</body></html>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-07 18:38 UTC] thies at cvs dot php dot net
fixed in cvs - please try cvs-version or recent snapshot (snaps.php.net)

 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC