|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Sec Bug #64879 Heap based buffer overflow in quoted_printable_encode
Submitted: 2013-05-20 08:53 UTC Modified: 2013-06-08 09:17 UTC
From: Assigned: stas (profile)
Status: Closed Package: Strings related
PHP Version: 5.3.25 OS: *
Private report: No CVE-ID: 2013-2110
 [2013-05-20 08:53 UTC]
quoted_printable_encode calculates the string size wrong, so overflow is 

Test script:
quoted_printable_encode(str_repeat("\xf4", 1000));

Expected result:
No crash

Actual result:


quotedfix (last revision 2013-05-22 07:07 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-20 08:54 UTC]
-CVE-ID: +CVE-ID: 2013-2110
 [2013-05-22 07:07 UTC]
The following patch has been added/updated:

Patch Name: quotedfix
Revision:   1369206432
 [2013-06-05 05:01 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: stas
 [2013-06-05 05:01 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jul 20 22:01:29 2024 UTC