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

Empty xml configure file causes crash

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.11.0
    • Component/s: Configurator
    • Labels:
      None

      Description

      If the xml configure file is empty, configure() will crash.

      Test code:
      #include <log4cxx/xml/domconfigurator.h>
      int main()
      {
      log4cxx::xml::DOMConfigurator::configureAndWatch("test.xml", 5000);
      return 0;
      }

      Create an empty test.xml in the working dir and run.

      Crashed in apr_xml_parser_geterror (parser=0x0).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsouthwell Joseph Southwell
                Reporter:
                jinq0123 Jin Qing
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4m
                  4m
                  Remaining:
                  Remaining Estimate - 4m
                  4m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified