[geos-commits] [SCM] GEOS branch 3.9 updated. 755b1360d2221e7b560101fab8cb237b0275ece3

git at osgeo.org git at osgeo.org
Wed Jun 28 14:47:00 PDT 2023


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, 3.9 has been updated
       via  755b1360d2221e7b560101fab8cb237b0275ece3 (commit)
       via  3b02d4a00a875a1bcdb13d75592272175c216a09 (commit)
      from  d6f53e6c6b5da324aeb7d84a6044012710926a26 (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 755b1360d2221e7b560101fab8cb237b0275ece3
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jun 28 09:00:00 2023 -0700

    Remove undefined behaviour in use of null PrecisionModel, references GH-931

diff --git a/NEWS b/NEWS
index c1887fe5b..892b2cb82 100644
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,7 @@ Changes in 3.9.5
   - MaximumInscribedCircle: Fix infinite loop with non-finite coordinates (GH-843, Dan Baston)
   - DistanceOp: Fix crash on collection containing empty point (GH-842, Dan Baston)
   - GEOSClipByRect: Fix case with POINT EMPTY (GH-913, Mike Taves)
+  - Remove undefined behaviour in use of null PrecisionModel (GH-931, Jeff Walton)
 
 
 Changes in 3.9.4

commit 3b02d4a00a875a1bcdb13d75592272175c216a09
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jun 28 08:55:11 2023 -0700

    Remove undefined behaviour in use of null PrecisionModel, closes #931

diff --git a/src/operation/overlayng/OverlayMixedPoints.cpp b/src/operation/overlayng/OverlayMixedPoints.cpp
index d9119a80a..872e64a14 100644
--- a/src/operation/overlayng/OverlayMixedPoints.cpp
+++ b/src/operation/overlayng/OverlayMixedPoints.cpp
@@ -74,7 +74,7 @@ private:
 /*public*/
 OverlayMixedPoints::OverlayMixedPoints(int p_opCode, const Geometry* geom0, const Geometry* geom1, const PrecisionModel* p_pm)
     : opCode(p_opCode)
-    , pm(p_pm)
+    , pm(p_pm ? p_pm : geom0->getPrecisionModel())
     , geometryFactory(geom0->getFactory())
     , resultDim(OverlayUtil::resultDimension(opCode, geom0->getDimension(), geom1->getDimension()))
 {

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

Summary of changes:
 NEWS                                           | 1 +
 src/operation/overlayng/OverlayMixedPoints.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list