celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Broekhuis (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CELIX-197) insufficient memory allocated
Date Wed, 07 Jan 2015 14:54:35 GMT

     [ 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)

Mime
View raw message