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

Fixed possible out-of-bound access in circles drawing.

This commit is contained in:
Alexander Smorkalov
2023-07-05 14:09:20 +03:00
parent 53af876999
commit 52d9685cb9
2 changed files with 13 additions and 5 deletions
+8
View File
@@ -913,4 +913,12 @@ INSTANTIATE_TEST_CASE_P(
)
);
TEST(Drawing, circle_overflow)
{
applyTestTag(CV_TEST_TAG_VERYLONG);
cv::Mat1b matrix = cv::Mat1b::zeros(600, 600);
cv::Scalar kBlue = cv::Scalar(0, 0, 255);
cv::circle(matrix, cv::Point(275, -2147483318), 2147483647, kBlue, 1, 8, 0);
}
}} // namespace