#702 ArrayPut accepts idx value of 0

v4.0
closed
APIs (66)
5
2012-08-14
2009-05-22
No

The interface function ArrayPut(arr, obj, idx) expects an "idx" value that is 1-based.

By mistake I used the value 0 and it got accepted.

Later, an ArrayItems() would abend the program (unfortunately in an JNI controlled environment, not allowing to step-in with the debugger after the fact, causing quite some time to corner this), and an ArraySize() would surprisingly return an "incredible" high number (2130751760), which brought me on the right trail.

Discussion

  • Rick McGuire

    Rick McGuire - 2009-05-22

    Committed revision 4723.

     
  • Mark Miesfeld

    Mark Miesfeld - 2010-02-19

    The fix for this item was in the 4.0.0 release.

     


Anonymous

Cancel  Add attachments





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

Sign up for the SourceForge newsletter:





No, thanks