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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 13:01:30 2024 UTC