You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Alexander Broekhuis (JIRA)" <ji...@apache.org> on 2015/01/07 15:54:35 UTC
[jira] [Resolved] (CELIX-197) insufficient memory allocated
[ https://issues.apache.org/jira/browse/CELIX-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Broekhuis resolved CELIX-197.
---------------------------------------
Resolution: Fixed
Fix Version/s: next-incubating
Assignee: Alexander Broekhuis
Fixed the issue by allocating enough memory. While the resulting value might be shorter than the incoming value, using the incoming length + 1 should always be enough.
-----------------
Author: abroekhuis
Date: Wed Jan 7 14:52:49 2015
New Revision: 1650075
URL: http://svn.apache.org/r1650075
Log:
CELIX-197: Fixed allocation problems in filter.c.
> insufficient memory allocated
> -----------------------------
>
> Key: CELIX-197
> URL: https://issues.apache.org/jira/browse/CELIX-197
> Project: Celix
> Issue Type: Bug
> Reporter: Daniel Parker
> Assignee: Alexander Broekhuis
> Priority: Minor
> Fix For: next-incubating
>
>
> The function framework/private/src/filter.c::filter_parseValue() uses strdup("") to allocate memory rather than malloc(strlen(fileterString)) or something.
> Note that I haven't ever seen this actually cause problems, but the code is incorrect, so I thought I'd mention it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)