Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-388

Hierarchy::updateParents loops forever on illegal logger-name like '.logger1'

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows XP, Visual Studio 2008

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              gpo Gerhard Pobinger

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment