[geos-commits] [SCM] GEOS branch 3.9 updated. 0d3e09cc31101a7bd58051add7db0ce0aef6b6f5
git at osgeo.org
git at osgeo.org
Wed Aug 25 15:43:21 PDT 2021
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 0d3e09cc31101a7bd58051add7db0ce0aef6b6f5 (commit)
from be94f05a7de2c2e32c338eb8f4f36c569cdfeea0 (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 0d3e09cc31101a7bd58051add7db0ce0aef6b6f5
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Aug 25 15:42:37 2021 -0700
Sanitize fix to ensure stack allocated envelope is available to edgeNodingBuilder, closes https://github.com/libgeos/geos/issues/476
diff --git a/src/operation/overlayng/OverlayNG.cpp b/src/operation/overlayng/OverlayNG.cpp
index 3393b84..ea8d867 100644
--- a/src/operation/overlayng/OverlayNG.cpp
+++ b/src/operation/overlayng/OverlayNG.cpp
@@ -211,11 +211,13 @@ OverlayNG::computeEdgeOverlay()
* Formerly in nodeEdges())
*/
EdgeNodingBuilder nodingBuilder(pm, noder);
+ // clipEnv not always used, but needs to remain in scope
+ // as long as nodingBuilder when it is.
+ Envelope clipEnv;
GEOS_CHECK_FOR_INTERRUPTS();
if (isOptimized) {
- Envelope clipEnv;
bool gotClipEnv = OverlayUtil::clippingEnvelope(opCode, &inputGeom, pm, clipEnv);
if (gotClipEnv) {
nodingBuilder.setClipEnvelope(&clipEnv);
-----------------------------------------------------------------------
Summary of changes:
src/operation/overlayng/OverlayNG.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list