php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2721 base64_decode doesn't null terminate output string.
Submitted: 1999-11-13 18:51 UTC Modified: 2000-06-09 11:53 UTC
From: waltb at rocketcash dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 2 OS: Linux
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: waltb at rocketcash dot com
New email:
PHP Version: OS:

 

 [1999-11-13 18:51 UTC] waltb at rocketcash dot com
when using base64_decode, the decoded string is ended with a
space char (32), not a null char (0).  This causes no end
of problems, some of which start with strlent on that output string!  :)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-03-06 11:33 UTC] hholzgra at cvs dot php dot net
is this still the case ? sample code ?
 [2000-06-09 11:53 UTC] stas at cvs dot php dot net
no user feedback
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 21:00:01 2026 UTC