1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Issues found by static analysis (5th round)

This commit is contained in:
Maksim Shabunin
2017-07-01 18:43:48 +03:00
parent e5aa213554
commit 1f23202ad8
10 changed files with 54 additions and 50 deletions
+1 -1
View File
@@ -1879,7 +1879,7 @@ icvLoadCascadeCART( const char** input_cascade, int n, CvSize orig_window_size )
sscanf( stage, "%d%n", &rects, &dl );
stage += dl;
CV_DbgAssert( rects >= 2 && rects <= CV_HAAR_FEATURE_MAX );
CV_Assert( rects >= 2 && rects <= CV_HAAR_FEATURE_MAX );
for( k = 0; k < rects; k++ )
{