You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Jacques Legare (JIRA)" <xe...@xml.apache.org> on 2008/06/09 17:21:44 UTC

[jira] Created: (XERCESC-1808) Segfault when validating malformed XML instance ...

Segfault when validating malformed XML instance ...
---------------------------------------------------

                 Key: XERCESC-1808
                 URL: https://issues.apache.org/jira/browse/XERCESC-1808
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (XML Schema)
    Affects Versions: 2.8.0
         Environment: Linux/Ubuntu
            Reporter: Jacques Legare


If the following two lines 

    // Causes crash when a malformed XML document is validated:
    parser->setExitOnFirstFatalError (false);

are inserted in SAX2Count.cpp at line 332, a segfault occurs when the program is fed an instance which is not well-formed. 

   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Resolved: (XERCESC-1808) Segfault when validating malformed XML instance ...

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alberto Massari resolved XERCESC-1808.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0
         Assignee: Alberto Massari

A fix is in SVN.

> Segfault when validating malformed XML instance ...
> ---------------------------------------------------
>
>                 Key: XERCESC-1808
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1808
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.8.0
>         Environment: Linux/Ubuntu
>            Reporter: Jacques Legare
>            Assignee: Alberto Massari
>             Fix For: 3.1.0
>
>         Attachments: SAX2Count.cpp, simple.xml, simple.xsd
>
>
> If the following two lines 
>     // Causes crash when a malformed XML document is validated:
>     parser->setExitOnFirstFatalError (false);
> are inserted in SAX2Count.cpp at line 332, a segfault occurs when the program is fed an instance which is not well-formed. 
>    

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Updated: (XERCESC-1808) Segfault when validating malformed XML instance ...

Posted by "Jacques Legare (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Legare updated XERCESC-1808:
------------------------------------

    Attachment: SAX2Count.cpp

Doctored copy of SAX2Count.cpp

> Segfault when validating malformed XML instance ...
> ---------------------------------------------------
>
>                 Key: XERCESC-1808
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1808
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.8.0
>         Environment: Linux/Ubuntu
>            Reporter: Jacques Legare
>         Attachments: SAX2Count.cpp, simple.xml, simple.xsd
>
>
> If the following two lines 
>     // Causes crash when a malformed XML document is validated:
>     parser->setExitOnFirstFatalError (false);
> are inserted in SAX2Count.cpp at line 332, a segfault occurs when the program is fed an instance which is not well-formed. 
>    

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Updated: (XERCESC-1808) Segfault when validating malformed XML instance ...

Posted by "Jacques Legare (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Legare updated XERCESC-1808:
------------------------------------

    Attachment: simple.xsd
                simple.xml

The input simple.xml is not well-formed.


> Segfault when validating malformed XML instance ...
> ---------------------------------------------------
>
>                 Key: XERCESC-1808
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1808
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.8.0
>         Environment: Linux/Ubuntu
>            Reporter: Jacques Legare
>         Attachments: SAX2Count.cpp, simple.xml, simple.xsd
>
>
> If the following two lines 
>     // Causes crash when a malformed XML document is validated:
>     parser->setExitOnFirstFatalError (false);
> are inserted in SAX2Count.cpp at line 332, a segfault occurs when the program is fed an instance which is not well-formed. 
>    

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Commented: (XERCESC-1808) Segfault when validating malformed XML instance ...

Posted by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESC-1808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12605959#action_12605959 ] 

Boris Kolpackov commented on XERCESC-1808:
------------------------------------------

Confirmed. The problem is also present in the 3.0.0 codebase and leads to SchemaValidator.

> Segfault when validating malformed XML instance ...
> ---------------------------------------------------
>
>                 Key: XERCESC-1808
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1808
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.8.0
>         Environment: Linux/Ubuntu
>            Reporter: Jacques Legare
>         Attachments: SAX2Count.cpp, simple.xml, simple.xsd
>
>
> If the following two lines 
>     // Causes crash when a malformed XML document is validated:
>     parser->setExitOnFirstFatalError (false);
> are inserted in SAX2Count.cpp at line 332, a segfault occurs when the program is fed an instance which is not well-formed. 
>    

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org