1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

core: fix infinite recursion in compare

This commit is contained in:
Vladislav Sovrasov
2017-06-28 12:03:07 +03:00
parent 82ec76c123
commit 35a1ecef2a
2 changed files with 15 additions and 2 deletions
+10
View File
@@ -1922,3 +1922,13 @@ TEST(Compare, empty)
EXPECT_TRUE(dst1.empty());
EXPECT_TRUE(dst2.empty());
}
TEST(Compare, regression_8999)
{
Mat_<double> A(4,1); A << 1, 3, 2, 4;
Mat_<double> B(1,1); B << 2;
Mat C;
ASSERT_ANY_THROW({
compare(A, B, C, CMP_LT);
});
}