#69 Array bound failure in tinytree

v6.5.1
closed
5
2012-10-08
2002-03-13
Michael Kay
No

An ArrayIndexOutOfBounds exception can occur in method
hasChildNodes() of class tinytree.ParentNodeImpl. It
happens when the node being tested is the last node in
the document and the number of nodes in the document
exactly matches the size of array that has been
allocated (typically 4000 entries, or some multiple
thereof).

Reported by Nikos Markantonatos [nikos@atypon.com]

Present in 6.5.1, 7.0, and all known earlier versions
(since 6.0, when the tinytree was introduced).

Source code fixed in both branches. Not tested, due to
the difficulty of creating a test document of exactly
the right size.

Discussion

  • Michael Kay

    Michael Kay - 2002-04-12

    Logged In: YES
    user_id=251681

    Fixed in 6.5.2

     
  • Michael Kay

    Michael Kay - 2002-04-30

    Logged In: YES
    user_id=251681

    Fixed in 7.1

     

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks