I encountered this bug when trying to update paplj to the new dynsem implementation. It called getSubterm with 0 as its argument, but it threw an ArrayIndexOutOfBoundsException. So it got to line 56 (i.e. return kids[index]) despite being out of bounds.
I searched for other off-by-one bound checks but could not find one.
I encountered this bug when trying to update paplj to the new dynsem implementation. It called
getSubterm
with0
as its argument, but it threw an ArrayIndexOutOfBoundsException. So it got to line 56 (i.e.return kids[index]
) despite being out of bounds.I searched for other off-by-one bound checks but could not find one.