core: forbid handling of the case when src=dst in cv::repeat

This commit is contained in:
Vladislav Sovrasov
2017-06-26 12:30:03 +03:00
parent cc021e555b
commit 4f9871817a
2 changed files with 10 additions and 0 deletions
+1
View File
@@ -856,6 +856,7 @@ void repeat(InputArray _src, int ny, int nx, OutputArray _dst)
{
CV_INSTRUMENT_REGION()
CV_Assert(_src.getObj() != _dst.getObj());
CV_Assert( _src.dims() <= 2 );
CV_Assert( ny > 0 && nx > 0 );