[geos-commits] [SCM] GEOS branch 3.12 updated. bd3e599061d679aeae4d3925ff243a913721109e

git at osgeo.org git at osgeo.org
Wed Jun 28 08:57:54 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.12 has been updated
       via  bd3e599061d679aeae4d3925ff243a913721109e (commit)
       via  efda614850f5d7928706ca2edb24e958b542a9b1 (commit)
      from  686e4a87ff7ef211f4c6b639b91d724111788ced (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 bd3e599061d679aeae4d3925ff243a913721109e
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Jun 28 08:57:32 2023 -0700

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

diff --git a/NEWS.md b/NEWS.md
index 306fb4e68..5ca70478c 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,11 @@
+
+## Changes in 3.12.1
+2023-xx-xx
+
+- Fixes:
+  - Remove undefined behaviour in use of null PrecisionModel (GH-931, Jeff Walton)
+
+
 ## Changes in 3.12.0
 2023-06-27
 

commit efda614850f5d7928706ca2edb24e958b542a9b1
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 b0a20a91a..1285186a2 100644
--- a/src/operation/overlayng/OverlayMixedPoints.cpp
+++ b/src/operation/overlayng/OverlayMixedPoints.cpp
@@ -76,7 +76,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                                        | 8 ++++++++
 src/operation/overlayng/OverlayMixedPoints.cpp | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list