Itseez/opencv — pull request #2784 by saree90 (2014-05-22 12:57:48+00:00)
Title: DownhillSolverImpl::innerDownhillSimplex something looks broken here:

Mat_ coord_sum(1,ndim,0.0),buf(1,ndim,0.0),y(1,ndim,0.0);
nfunk = 0;
for(i=0;icalc(p[i]);
}
y has only ndim elements, while the loop goes over ndim+1