[geos-commits] [SCM] GEOS branch 3.14 updated. 6b710e496b3384f26578df8d19ba483ff17dfd61
git at osgeo.org
git at osgeo.org
Thu Oct 15 20:58:09 PDT 2026
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.14 has been updated
via 6b710e496b3384f26578df8d19ba483ff17dfd61 (commit)
via e0cc86f4c8ff4279b76392f3ab00dbb9742dfa8e (commit)
from 7db6f62d50221a7ccac91c329a9a4fe61d172a56 (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 6b710e496b3384f26578df8d19ba483ff17dfd61
Author: Mike Taves <mwtoews at gmail.com>
Date: Fri Oct 16 16:49:58 2026 +1300
CI: switch-off CodeQL
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index a99e32536..fbf7f63cf 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -13,6 +13,9 @@ permissions:
jobs:
analyze:
+ # Switch-off this action for maintanence branches
+ if: false
+
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
commit e0cc86f4c8ff4279b76392f3ab00dbb9742dfa8e
Author: Mike Taves <mwtoews at gmail.com>
Date: Fri Oct 16 13:24:00 2026 +1300
Avoid raising `FE_INVALID` from Envelope (#1555)
diff --git a/NEWS.md b/NEWS.md
index b1bea0c64..b48cf3470 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -11,6 +11,7 @@
- Guard against stack overflow in inputs (GH-1437, Paul Ramsey)
- Avoid overflow risk in WKB reader (Paul Ramsey)
- GEOSNode: fix crash on collection with empty components (GH-1406, Dan Baston)
+ - Avoid raising `FE_INVALID` from Envelope (GH-1555, Mike Taves)
## Changes in 3.14.1
2025-10-27
diff --git a/include/geos/geom/Envelope.h b/include/geos/geom/Envelope.h
index 61e074be8..aa63985ab 100644
--- a/include/geos/geom/Envelope.h
+++ b/include/geos/geom/Envelope.h
@@ -583,6 +583,11 @@ public:
*/
bool intersects(double x, double y) const
{
+#if defined(__OPTIMIZE__) && defined(__x86_64__) && defined(__clang__) && (__clang_major__ >= 15)
+ if(std::isnan(x) || std::isnan(maxx)) {
+ return false;
+ }
+#endif /* defined(__OPTIMIZE__) && defined(__clang__) ... */
return std::islessequal(x, maxx) &&
std::isgreaterequal(x, minx) &&
std::islessequal(y, maxy) &&
@@ -633,6 +638,11 @@ public:
* @return `true` if `(x, y)` lies in the interior or on the boundary of this Envelope.
*/
bool covers(double x, double y) const {
+#if defined(__OPTIMIZE__) && defined(__x86_64__) && defined(__clang__) && (__clang_major__ >= 15)
+ if(std::isnan(x) || std::isnan(minx)) {
+ return false;
+ }
+#endif /* defined(__OPTIMIZE__) && defined(__clang__) ... */
return std::isgreaterequal(x, minx) &&
std::islessequal(x, maxx) &&
std::isgreaterequal(y, miny) &&
diff --git a/tests/unit/geom/EnvelopeTest.cpp b/tests/unit/geom/EnvelopeTest.cpp
index 5974f84e0..dccddf5a0 100644
--- a/tests/unit/geom/EnvelopeTest.cpp
+++ b/tests/unit/geom/EnvelopeTest.cpp
@@ -265,7 +265,10 @@ void object::test<6>
check_intersects(small, {-1, -1}, true);
check_intersects(small, {5, 5}, false);
+#if !( defined(__OPTIMIZE__) && defined(__x86_64__) && defined(__clang__) && defined(__apple_build_version__) )
+// Exclude optimized Apple Clang on x86_64 osx - raises FE_INVALID
check_intersects(empty, {0, 0}, false);
+#endif
ensure_no_fp_except();
}
-----------------------------------------------------------------------
Summary of changes:
.github/workflows/codeql.yml | 3 +++
NEWS.md | 1 +
include/geos/geom/Envelope.h | 10 ++++++++++
tests/unit/geom/EnvelopeTest.cpp | 3 +++
4 files changed, 17 insertions(+)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list