[ 
https://issues.apache.org/jira/browse/CELIX-32?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pepijn Noltes resolved CELIX-32.
--------------------------------

    Resolution: Fixed
    
> serviceTracker_create method creates wrong filter
> -------------------------------------------------
>
>                 Key: CELIX-32
>                 URL: https://issues.apache.org/jira/browse/CELIX-32
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Pepijn Noltes
>
> The serviceTracker_create method uses strcpy and strcat to create a filter 
> from a provided service name. The algorithm contains a bug a writes 1 byte to 
> much to the allocated memory.
> Solution: instead of strcat/strcpy use apr_pstrcat:
> char *filter  = apr_pstrcat(pool, "(", OBJECTCLASS, "=", service, ")", NULL);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to