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
 [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: Sun Apr 28 00:01:28 2024 UTC