mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
calib3d: fix invalid memory access
This commit is contained in:
parent
3f102e5d3a
commit
2e17251160
@ -227,7 +227,7 @@ prefilterXSobel( const Mat& src, Mat& dst, int ftzero )
|
||||
v_int16x8 ftz2 = v_setall_s16((short)(ftzero*2));
|
||||
v_int16x8 z = v_setzero_s16();
|
||||
|
||||
for(; x <= size.width-8; x += 8 )
|
||||
for(; x <= (size.width - 1) - 8; x += 8 )
|
||||
{
|
||||
v_int16x8 s00 = v_reinterpret_as_s16(v_load_expand(srow0 + x + 1));
|
||||
v_int16x8 s01 = v_reinterpret_as_s16(v_load_expand(srow0 + x - 1));
|
||||
|
Loading…
Reference in New Issue
Block a user