mirror of
https://github.com/opencv/opencv.git
synced 2026-09-25 04:09:57 +03:00
Fixed out of bound reading issue in erode() and dilate()
This commit is contained in:
@@ -159,7 +159,7 @@ template<class VecUpdate> struct MorphRowVec
|
||||
i += vtype::nlanes/2;
|
||||
}
|
||||
|
||||
return i;
|
||||
return i - i % cn;
|
||||
}
|
||||
|
||||
int ksize, anchor;
|
||||
|
||||
Reference in New Issue
Block a user