Itseez/opencv — pull request #1870 by es0m (2013-11-26 00:24:34+00:00)
Title: fixed comparison to stop integer wrap around

cvFindCornerSubpix is able to generate corner position updates far away from the image (if the determinant of the corner patch is too small). This leads to large positive numbers which lead to integer wrap arounds when added to src_size. This results in access errors in samplers.cpp.
gcc 4.7.1, 64bit Alces HPC Linux