#27099 [Fbk->NoF]: session_decode crash on incorrect data
| From: | sniper@php.net | Date: | Thu, 05 Feb 2004 00:17:28 +0000 |
| Subject: | #27099 [Fbk->NoF]: session_decode crash on incorrect data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54417@lists.php.net to get a copy of this message | ||
ID: 27099
Updated by: sniper@php.net
Reported By: oleg at khimich dot com
-Status: Feedback
+Status: No Feedback
Bug Type: Session related
Operating System: Windows XP
PHP Version: 4.3.4
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2004-01-30 12:22:18] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
I can not reproduce this. (try provide full example)
------------------------------------------------------------------------
[2004-01-30 10:14:35] oleg at khimich dot com
Description:
------------
In incorrect data passed to session_decode function PHP engine may
crash.
Reproduce code:
---------------
Made session dump with:
$f=fopen("$name.profile","w");
fwrite($f,session_encode());
fclose($f);
and then if partial read was made before decoding session:
$t=fread($f,65000); instead of
$t=fread($f,filesize("$name.profile"));
so, now in $t there is unclosed strings, brackets..
Now try to make session_decode($t) and php probably crash.
Expected result:
----------------
WinXP shows exeption for apache process
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27099&edit=1