Fixed a memory access error in CV_Remap_Test::generate_test_data.
authorRoman Donchenko <roman.donchenko@itseez.com>
Fri, 6 Sep 2013 12:02:41 +0000 (16:02 +0400)
committerRoman Donchenko <roman.donchenko@itseez.com>
Fri, 6 Sep 2013 12:02:41 +0000 (16:02 +0400)
commit4f109d12924d1ac5e097e3fec707274cfbb5d7ec
tree1bf609743bc21f92ffec618a5987d397e57f8335
parent2de8487e5844a11a99bad39925bb2074be747ed3
Fixed a memory access error in CV_Remap_Test::generate_test_data.

begin_x[1] is not the second component of the element, but the element
after the one pointed to begin_x. When begin_x points to the last
element, that line overwrites data past the end of the allocation, which,
during my tests, happened to contain the reference count for the matrix.
Hilarity ensues.
modules/imgproc/test/test_imgwarp_strict.cpp