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

Merge pull request #28569 from Kumataro:fix28568

imgproc: fix -Wstringop-overflow false-positive in minEnclosingConvexPolygon
This commit is contained in:
Alexander Smorkalov
2026-02-24 11:12:40 +03:00
committed by GitHub
@@ -913,6 +913,7 @@ std::vector<Side> Chains::reconstructHSidedChain(int h, int i, int j)
std::vector<Side> Chains::findKSides(int k, int i, int j)
{
std::vector<Side> sides;
sides.reserve(k); // Optimization and avoiding GCC's false positive warning (-Wstringop-overflow)
sides.push_back({i, true});
sides.push_back({j, true});