php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62230 apc_copy_internal_strings does not copy terminating \0 of class entry
Submitted: 2012-06-05 03:37 UTC Modified: 2012-06-05 05:34 UTC
From: peacech at gmail dot com Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2012-06-05 03:37 UTC] peacech at gmail dot com
Description:
------------
In apc_string.c, function apc_copy_internal_strings

line 157: 
ce->name = apc_new_interned_string(ce->name, ce->name_length TSRMLS_CC);
should be
ce->name = apc_new_interned_string(ce->name, ce->name_length+1 TSRMLS_CC);

line 169:
info->name = apc_new_interned_string(info->name, info->name_length TSRMLS_CC);
should be
info->name = apc_new_interned_string(info->name, info->name_length+1 TSRMLS_CC);

Thanks.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-05 05:34 UTC] rasmus@php.net
Automatic comment from SVN on behalf of rasmus
Revision: http://svn.php.net/viewvc/?view=revision&revision=325977
Log: Fix bug 62230
 [2012-06-05 05:34 UTC] rasmus@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: rasmus
 [2012-06-05 05:34 UTC] rasmus@php.net
Fixed in svn, thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 11 08:01:32 2024 UTC