mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
imgproc(warpAffine): avoid buffer indexes overflow in SIMD code
This commit is contained in:
@@ -446,7 +446,7 @@ struct RemapVec_8u
|
||||
{
|
||||
int cn = _src.channels(), x = 0, sstep = (int)_src.step;
|
||||
|
||||
if( (cn != 1 && cn != 3 && cn != 4) || sstep > 0x8000 )
|
||||
if( (cn != 1 && cn != 3 && cn != 4) || sstep >= 0x8000 )
|
||||
return 0;
|
||||
|
||||
const uchar *S0 = _src.ptr(), *S1 = _src.ptr(1);
|
||||
|
||||
Reference in New Issue
Block a user