php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3432 Segmentation fault when using base64_encode on broken strings
Submitted: 2000-02-08 18:28 UTC Modified: 2000-02-08 19:47 UTC
From: chr at tv2i dot dk Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 3.0.12 OS: Redhat Linux 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: chr at tv2i dot dk
New email:
PHP Version: OS:

 

 [2000-02-08 18:28 UTC] chr at tv2i dot dk
The following code produces a segmentation fault (11). Independantly the two lines act properly, but together they produce the segmentation fault.

<?
echo base64_decode('a3A');
echo base64_decode('MTBiZXQ');
?>

The strings are base64_encoded strings with the terminating = removed (hence they are not true base64-encoded strings).

The error has been reproduced on 3.0.12 as well as on 3.0.5.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-02-08 19:47 UTC] thies at cvs dot php dot net
already fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 21:00:01 2026 UTC