You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by "Thorsten Schöning (JIRA)" <lo...@logging.apache.org> on 2014/02/09 21:00:20 UTC

[jira] [Resolved] (LOGCXX-388) Hierarchy::updateParents loops forever on illegal logger-name like '.logger1'

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

Thorsten Schöning resolved LOGCXX-388.
--------------------------------------

    Resolution: Fixed

I fixed this on trunk by checking for 0.

> Hierarchy::updateParents loops forever on illegal logger-name like '.logger1'
> -----------------------------------------------------------------------------
>
>                 Key: LOGCXX-388
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-388
>             Project: Log4cxx
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>         Environment: Windows XP, Visual Studio 2008
>            Reporter: Gerhard Pobinger
>            Assignee: Curt Arnold
>
> On an invalid logger name like e.g. '.logger1', log4cxx loops forever when trying to update parents in the logger hierarchy.
> The reason might be that in that special case
> i = name.find_last_of(0x2E /* '.' */, i-1)
> returns 0, and in the next iteration find_last_of starts over again from string::npos.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)