Date: 01/19/00
- Next message: godsfist <email protected>: "[PHP-DEV] Bug #3257: missing file"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Bug #3226 Updated: This code makes PHP segfault Apache"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Bug #3226 Updated: This code makes PHP segfault Apache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hy!
>>Description: This code makes PHP segfault Apache
>>I've also heard that this affects PHP4 b2 and b3.
> You forgot to post the code :)
Not really:
>>Full Bug description available at: http://bugs.php.net/?id=3226
But here goes:
Okay. So it seems as there's a bug in the functions
base64_decode(); when calling it many times.
Check the code below, and reload it 10-20 times!
It should make a few seg.fault messages in the apache error.log
-----------------------------------------
<?php
echo "<html><body>Start<br>";
flush();
for ($c=0;$c<4000;$c++) {
$a = "a+ly6XM";
$b = base64_decode($a);
}
echo "End<br>";
?>
-----------------------------------------
I was told this crashes PHP4 too, but din't test that, only in PHP3, however
the base64_decode function source code seems to be mostly the same.
| Noll Janos <johnzero <email protected>> | http://www.adam.hu/~johnzero |
| "Expect the unexpected!" | finger johnzero <email protected> for PGP |
| ICQ# 4547866 | Linux rulez! |
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: godsfist <email protected>: "[PHP-DEV] Bug #3257: missing file"
- Previous message: Andi Gutmans: "Re: [PHP-DEV] Bug #3226 Updated: This code makes PHP segfault Apache"
- In reply to: Andi Gutmans: "Re: [PHP-DEV] Bug #3226 Updated: This code makes PHP segfault Apache"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

