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 "Joseph Southwell (JIRA)" <lo...@logging.apache.org> on 2014/01/09 01:10:50 UTC

[jira] [Commented] (LOGCXX-415) Empty xml configure file causes crash

    [ https://issues.apache.org/jira/browse/LOGCXX-415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13866090#comment-13866090 ] 

Joseph Southwell commented on LOGCXX-415:
-----------------------------------------

I fixed this while working on LOG4CXX-417

> Empty xml configure file causes crash
> -------------------------------------
>
>                 Key: LOGCXX-415
>                 URL: https://issues.apache.org/jira/browse/LOGCXX-415
>             Project: Log4cxx
>          Issue Type: Bug
>          Components: Configurator
>    Affects Versions: 0.10.0
>            Reporter: Jin Qing
>   Original Estimate: 4m
>  Remaining Estimate: 4m
>
> 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).



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