opencv/modules/imgproc
Zhigang Gong 3c85200989 Avoid negative index for a local buffer in Canny.cl.
int pix_per_thr = l_counter / LOCAL_TOTAL + ((lid < mod) ? 1 : 0);
The pix_per_thr * LOCAL_TOTAL may be larger than l_counter.
Thus the index of l_stack may be negative which may cause serious
problems. Let's skip the loop when we get negative index and we need
to add back the lcounter to keep its balance and avoid potential
negative counter.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
2015-05-26 08:48:05 +08:00
..
doc Merge pull request #4011 from cr333:parula 2015-05-16 19:11:32 +00:00
include/opencv2 typos in comments 2015-05-23 17:36:45 +02:00
misc/java/test Modified java wrapping mechanism 2015-03-02 18:12:30 +03:00
perf Increased perf_imgproc.moments max error 2015-04-27 17:05:55 +03:00
src Avoid negative index for a local buffer in Canny.cl. 2015-05-26 08:48:05 +08:00
test added test to prove that remap does not leak memory (http://code.opencv.org/issues/2502). disabled the test for now to save execution time. 2015-05-14 18:21:26 +03:00
CMakeLists.txt Python support 2015-03-02 18:13:00 +03:00