PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3001 *** shadow/3001 Mon Aug 6 05:43:27 2001 --- shadow/3001.tmp.4211 Mon Aug 6 06:29:48 2001 *************** *** 2,9 **** | Array out of bounds in XPath predicate that uses the preceding-axis | +----------------------------------------------------------------------------+ | Bug #: 3001 Product: XalanJ2 | ! | Status: NEW Version: 2.2.x | ! | Resolution: Platform: Other | | Severity: Normal OS/Version: Other | | Priority: Other Component: Xalan | +----------------------------------------------------------------------------+ --- 2,9 ---- | Array out of bounds in XPath predicate that uses the preceding-axis | +----------------------------------------------------------------------------+ | Bug #: 3001 Product: XalanJ2 | ! | Status: RESOLVED Version: 2.2.x | ! | Resolution: FIXED Platform: Other | | Severity: Normal OS/Version: Other | | Priority: Other Component: Xalan | +----------------------------------------------------------------------------+ *************** *** 125,127 **** --- 125,139 ---- </xsl:stylesheet> ------- EOF ------- + + ------- Additional Comments From [EMAIL PROTECTED] 2001-08-06 06:29 ------- + Jochen, thank you very much for reporting this. It should be fixed in the + current CVS. + + In the cloneIterator function of PrecedingIterator, the cloned array + was being sized for _maxAncestors, which defaults to 8. But if the + _stack was resized, it will copy more into the new stack than is + allocated. The solution is to allocate the new clone._stack array to + _stack.length. + + Regression test is xml-xalan/test/tests/bugzilla/Bugzilla3001.*. \ No newline at end of file
