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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user