When performing Clumping, sometime I will encounter the error:
*** stack smashing detected ***
After searching online, it was suggested that it might be a buffer overflow. After spending sometime looking into the code, it seems like in the
em_phase_hethet
function, it is possible for the sol_end_idx equals to 3, which causes a buffer overflow in line 4939. Should that line be
if (solutions[sol_end_idx-1] > half_hethet_share) {
solutions[sol_end_idx-1] = half_hethet_share;
}
instead?
Thanks