|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68674 Invalid free
Submitted: 2014-12-29 01:54 UTC Modified: 2015-08-08 14:03 UTC
From: bugreports at internot dot info Assigned: bwoebi (profile)
Status: Not a bug Package: phpdbg
PHP Version: master-Git-2014-12-29 (Git) OS: Linux Ubuntu 14.04
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
13 + 27 = ?
Subscribe to this entry?

 [2014-12-29 01:54 UTC] bugreports at internot dot info

In /sapi/phpdbg/phpdbg_bp.c:

211                                        if ((*str)[0]) {
212                                                efree(*str);

As you can see from line 211, *str is an array.



Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-30 02:53 UTC]
-Package: *General Issues +Package: phpdbg
 [2015-01-08 08:34 UTC]
-Assigned To: +Assigned To: krakjoe
 [2015-08-08 14:03 UTC]
-Status: Assigned +Status: Not a bug -Assigned To: krakjoe +Assigned To: bwoebi
 [2015-08-08 14:03 UTC]
There's no invalid free. The check is to prevent the literal "" (with which str is initialized) to be freed. Hence it checks whether the first byte is not 0.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 12 17:01:33 2024 UTC