#43385 [Opn->Fbk]: browser_reg_compare frees stack variable
| From: | jani@php.net | Date: | Mon, 26 Nov 2007 10:49:26 +0000 |
| Subject: | #43385 [Opn->Fbk]: browser_reg_compare frees stack variable | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-120068@lists.php.net to get a copy of this message | ||
ID: 43385
Updated by: jani@php.net
Reported By: andy at petdance dot com
-Status: Open
+Status: Feedback
Bug Type: *General Issues
Operating System: *
PHP Version: 5.3CVS-2007-11-23 (CVS)
New Comment:
You mean regfree() is not appropriate? How come?
Previous Comments:
------------------------------------------------------------------------
[2007-11-23 06:47:33] andy at petdance dot com
Then again, it seems to be happening all over, not just in this one
function. It sure seems to be a segfault waiting to happen.
------------------------------------------------------------------------
[2007-11-23 06:31:44] andy at petdance dot com
Description:
------------
At the tail end of browser_reg_compare, it frees stack variable r.
This is never appropriate.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43385&edit=1