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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • None
    • None
    • None
    • 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

            carnold@apache.org Curt Arnold
            gpo Gerhard Pobinger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: