xalan-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shath...@e-z.net
Subject Re: Bug in Xalan-C 1.11
Date Tue, 22 Jan 2013 19:22:47 GMT
Frank,

Thanks for your report.  The issue will be researched.

Sincerely,
Steven J. Hathaway

> Hi Steven,
>
> unfortunately I don't have the time to get involved in the Xalan-C
> project.
>
> However, I stumbled over a bug in Xalan-C 1.11 and was able to fix it. I
> got an access violation when calling XalanTransformer::transform if the
> xslt was invalid.
>
> I could track the problem down to this code in XalanLocator.hpp:
>
>     static const XalanDOMChar*
>     getSystemId(
>             const Locator*          theLocator,
>             const XalanDOMChar*     theAlternateId = getEmptyPtr())
>     {
>         return theLocator == 0 ? theAlternateId :
> (theLocator->getSystemId() ?
>             theLocator->getPublicId() : theAlternateId);
>     }
>
> it should be:
>
>     static const XalanDOMChar*
>     getSystemId(
>             const Locator*          theLocator,
>             const XalanDOMChar*     theAlternateId = getEmptyPtr())
>     {
>         return theLocator == 0 ? theAlternateId :
> (theLocator->getSystemId() ?
>             theLocator->getSystemId() : theAlternateId);
>     }
>
> Cheers
> Frank
>
>



Mime
View raw message