[geos-commits] [SCM] geos branch svn-trunk updated. 2e54be24bffc733989a8e9076f85ba3727f1800e
git at osgeo.org
git at osgeo.org
Thu Apr 6 05:52:40 PDT 2017
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, svn-trunk has been updated
via 2e54be24bffc733989a8e9076f85ba3727f1800e (commit)
from 7f3a218283b76a51ef6c0c8ad3c75134acfe49fc (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 2e54be24bffc733989a8e9076f85ba3727f1800e
Author: Daniel Baston <dbaston at maponics.com>
Date: Thu Apr 6 08:52:19 2017 -0400
Fix invalid read in FacetSequence
diff --git a/src/operation/distance/FacetSequence.cpp b/src/operation/distance/FacetSequence.cpp
index 4ef63eb..12fbd7e 100644
--- a/src/operation/distance/FacetSequence.cpp
+++ b/src/operation/distance/FacetSequence.cpp
@@ -44,14 +44,14 @@ double FacetSequence::distance(const FacetSequence & facetSeq) const {
if (isPointThis && isPointOther) {
Coordinate pt = pts->getAt(start);
- Coordinate seqPt = facetSeq.pts->getAt(start);
+ Coordinate seqPt = facetSeq.pts->getAt(facetSeq.start);
return pt.distance(seqPt);
} else if (isPointThis) {
Coordinate pt = pts->getAt(start);
return computePointLineDistance(pt, facetSeq);
} else if (isPointOther) {
- Coordinate seqPt = facetSeq.pts->getAt(start);
+ Coordinate seqPt = facetSeq.pts->getAt(facetSeq.start);
return computePointLineDistance(seqPt, *this);
}
-----------------------------------------------------------------------
Summary of changes:
src/operation/distance/FacetSequence.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
geos
More information about the geos-commits
mailing list