mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Fixed several issues found by static analysis in core module
This commit is contained in:
@@ -448,6 +448,7 @@ Mat& Mat::operator = (const Scalar& s)
|
||||
for( size_t j = 0; j < elsize; j += blockSize )
|
||||
{
|
||||
size_t sz = MIN(blockSize, elsize - j);
|
||||
CV_Assert(sz <= sizeof(scalar));
|
||||
memcpy( dptr + j, scalar, sz );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user