• Zhigang Gong's avatar
    Avoid negative index for a local buffer in Canny.cl. · 3c852009
    Zhigang Gong authored
    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: 's avatarZhigang Gong <zhigang.gong@intel.com>
    3c852009
Name
Last commit
Last update
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...