[ 
https://issues.apache.org/jira/browse/XERCESC-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sahayaraj updated XERCESC-1992:
-------------------------------

    Attachment: SGXMLScanner.cpp
                XercesBug.h
                XercesBug.cpp

XercesBug.h and .cpp are the files that reproduce this issue.

SGXMLScanner.cpp that has the fix.
                
> Access violation exception was thrown from scanFirst(..) function of 
> SGXMLScanner, it crashes the application.
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESC-1992
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1992
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.7.0
>         Environment: Operating System :- Windows -7, Windows 2008 R2 Server
> Software used :- MS Visual Studio 2010-Premium edition
> Hardware :- ACPI x64 based PC, 8GB RAM
>            Reporter: Sahayaraj
>            Priority: Blocker
>              Labels: patch
>             Fix For: 2.7.0
>
>         Attachments: SGXMLScanner.cpp, XercesBug.cpp, XercesBug.h
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The following are the code piece that cause the problem.
>                       string systemid("c:\\projects\\my.xml");
>                       XMLPScanToken token;
>                       std::auto_ptr<XMLGrammarPool> poolP(new 
> XMLGrammarPoolImpl (XMLPlatformUtils::fgMemoryManager));
>                       GrammarResolver grammarResolver(poolP.get());
>                       SGXMLScanner scanner(0, 0, 0, 0, 0, &grammarResolver);
>                       scanner.setDoValidation(false);
>                       scanner.setDoNamespaces(false);
>                       scanner.setExitOnFirstFatal(true);
>                       LocalFileInputSource inpSource((const XMLCh 
> *)systemid.c_str());
>                       scanner.scanFirst(inpSource, token);
> There is an access violation exception was thrown from scanFirst(..) 
> function. 
> PS. I would like to submit both the sample that reproduce this issue and the 
> fix in Xerces-C++ that resolves the issue. Please let me know to where I have 
> to upload them. I would love to do it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to