[geos-commits] [SCM] GEOS branch 3.10 updated. d5838838b456806609cd277925df558e16e5f906

git at osgeo.org git at osgeo.org
Wed Jun 28 14:46:44 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.10 has been updated
       via  d5838838b456806609cd277925df558e16e5f906 (commit)
       via  e784aa188fb9d7cc469398c1a87fb5eb28789488 (commit)
      from  eca8bc67e7767b30610b357f10a4fcd96480e655 (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 d5838838b456806609cd277925df558e16e5f906
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jun 28 08:59:15 2023 -0700

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

diff --git a/NEWS b/NEWS
index a4903d21a..e98915cd7 100644
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,7 @@ Changes in 3.10.6
   - Build issues with gcc-13 (GH-863)
   - GeoJSONReader: Fix 2D empty geometry creation (GH-910, Mike Taves)
   - 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.10.5
 2023-03-16

commit e784aa188fb9d7cc469398c1a87fb5eb28789488
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 87befe5c5..cb94ce393 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