Closed nmoehrle closed 7 years ago
Hi,
thanks for noticing the bug and opening this issue! Should be fixed with e9aa317b20055deb3990e60629b2c9090128bc7a, now.
You're right, i
should only iterate until num_labels
, though j
's bounds are correct. In the inner loop, invalid labels (these between num_labels
and num_labels_chunked
) need to be masked out, e.g. replaced by 0
. I added that.
There is an invalid write in multilevel.impl.h:819.
The vector
costs
has only sizenum_labels * num_labels_chunk
but is addressed ati * num_labels + j
where bothi
andj
are in[0, num_labels_chunk)
.