DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6919>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6919

XPathProcessorImpl::mapPatternElemPos: index out of bounds.

           Summary: XPathProcessorImpl::mapPatternElemPos: index out of
                    bounds.
           Product: XalanC
           Version: 1.3.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In XPathProcessorImpl::mapPatternElemPos in XPathProcessorImpl.cpp the 
line:

m_expression->adjustPattern(m_expression->patternMapSize(), -
TARGETEXTRA);

should be changed to:

m_expression->adjustPattern(m_expression-
>patternMapSize() - 1, -TARGETEXTRA);

else the call to adjustPattern will use an index out of 
bounds:

void adjustPattern(OpCodeMapSizeType theIndex,
                   PatternMapValueType 
theAdjustment)
{
  m_patternMap[theIndex] += theAdjustment;
}

Reply via email to