[geos-commits] [SCM] GEOS branch master updated. dc33ea4d5266da135e07204701efa39db37653fc

git at osgeo.org git at osgeo.org
Thu Apr 30 09:48:12 PDT 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  dc33ea4d5266da135e07204701efa39db37653fc (commit)
      from  9c5854b0852a1879b7c95953652b41bbccacd60d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dc33ea4d5266da135e07204701efa39db37653fc
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Thu Apr 30 09:48:08 2020 -0700

    add static check on input array, closes https://github.com/libgeos/geos/issues/261

diff --git a/src/algorithm/MinimumBoundingCircle.cpp b/src/algorithm/MinimumBoundingCircle.cpp
index f1051f1..4d064f3 100644
--- a/src/algorithm/MinimumBoundingCircle.cpp
+++ b/src/algorithm/MinimumBoundingCircle.cpp
@@ -332,6 +332,7 @@ MinimumBoundingCircle::pointWitMinAngleWithX(std::vector<Coordinate>& pts, Coord
 Coordinate
 MinimumBoundingCircle::pointWithMinAngleWithSegment(std::vector<Coordinate>& pts, Coordinate& P, Coordinate& Q)
 {
+    assert(!pts.empty());
     double minAng = std::numeric_limits<double>::max();
     const Coordinate* minAngPt = &pts[0];
 

-----------------------------------------------------------------------

Summary of changes:
 src/algorithm/MinimumBoundingCircle.cpp | 1 +
 1 file changed, 1 insertion(+)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list