[geos-commits] [SCM] GEOS branch 3.11 updated. 7d568c481663b2db08255d51eed4a619b320e2ec

git at osgeo.org git at osgeo.org
Wed Jun 28 14:46:52 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.11 has been updated
       via  7d568c481663b2db08255d51eed4a619b320e2ec (commit)
       via  e745ccb81a146ef00666ec4e3900d1ff21a64c1a (commit)
      from  98b53e76f2b0c9d691dfadcac71670af69daf435 (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 7d568c481663b2db08255d51eed4a619b320e2ec
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jun 28 08:58:18 2023 -0700

    Remove undefined behaviour in use of null PrecisionModel

diff --git a/NEWS.md b/NEWS.md
index adc1ea982..9bc02788d 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -10,7 +10,7 @@
   - GeoJSONReader: Fix 2D empty geometry creation (GH-910, Mike Taves)
   - OffsetCurve: add minimum threshold for quadsegs (GH-897, Martin Davis, Paul Ramsey)
   - 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.11.2
 2023-03-16

commit e745ccb81a146ef00666ec4e3900d1ff21a64c1a
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.md                                        | 2 +-
 src/operation/overlayng/OverlayMixedPoints.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list