java.lang.ArrayIndexOutOfBoundsException: Index 13 out of bounds for length 13
at ucar.ma2.ArrayChar.getChar(ArrayChar.java:472)
at ucar.ma2.IteratorFast.getCharNext(IteratorFast.java:150)
at ucar.ma2.MAMath.copyChar(MAMath.java:318)
at ucar.ma2.MAMath.copy(MAMath.java:191)
at ucar.ma2.Array.copy(Array.java:657)
at ucar.nc2.Variable._read(Variable.java:733)
at ucar.nc2.dataset.VariableDS._read(VariableDS.java:430)
at ucar.nc2.Variable.read(Variable.java:614)
at ncml_test.Ncml_Test.main(Ncml_Test.java:34)
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed?
Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct
[X] I agree to follow the UCAR/Unidata Code of Conduct
Versions impacted by the bug
v5.x
What went wrong?
When processing variable length char data , the ncml parser attempts to read outside of bounds and throws an exception.
Minimal example
Relevant stack trace
Relevant log messages
No response
If you have an example file that you can share, please attach it to this issue.
If so, may we include it in our test datasets to help ensure the bug does not return once fixed? Note: the test datasets are publicly accessible without restriction.
Yes
Code of Conduct