TDoubleArrayList fill method does not validate the fromIndex parameter

Issue #62 new
Saswata Chakravarty
created an issue

The fill method does not validate the fromIndex parameter. http://grepcode.com/file/repo1.maven.org/maven2/net.sf.trove4j/trove4j/3.0.2/gnu/trove/list/array/TDoubleArrayList.java#815

If the fromIndex is greater than the current size, this results in an invalid state with the bug remaining unnoticed. The value of the elements in the array from its current size to fromIndex becomes 0 and not equal to no_entry_value.

Comments (3)

  1. Log in to comment