#440 ArrayIndexOutOfBounds in TinyParentNodeImpl.getStringValue

v8.6.1
closed
5
2012-10-08
2005-12-05
Michael Kay
No

Symptoms: the typical stack trace starts

java.lang.ArrayIndexOutOfBoundsException: 50
at
net.sf.saxon.tinytree.TinyParentNodeImpl.getStringValue(TinyParentNodeImpl.java:66)
at
net.sf.saxon.tinytree.TinyParentNodeImpl.getStringValueCS(TinyParentNodeImpl.java:39)

The problem occurs when getting the string value of an
element node if both the following conditions are present:

(a) the number of nodes in the tree is exactly equal to
the allocation size (typically 50, 100, 200, 400 etc -
in the above example, 50)

(b) the tree was produced by copying an existing tree
with validation. On this path, the tree is not properly
closed.

The problem has been present at least since Saxon 8.4.

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks