Array out of bounds in bmz_search()
Brought to you by:
davi,
fc_botelho
In bmz_search() and bmz_search_packed(), the line
if (h1 == h2 && ++h2 > bmz->n) h2 = 0;
allows h2 to be equal n, which can cause access of memory past the end of bmz->g. I belive the > should be >=, as is found in chm_search().
Definitely! Will be fixed in the next release.
F.