[postgis-tickets] [SCM] PostGIS branch stable-2.5 updated. 2.5.4-24-g9d503a8

git at osgeo.org git at osgeo.org
Thu Jul 23 03:42:49 PDT 2020


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 "PostGIS".

The branch, stable-2.5 has been updated
       via  9d503a82a19173708eb200189aa9b126e448db93 (commit)
      from  2fe99bbcfb1ddf09db238e300ac3853655a3457c (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 9d503a82a19173708eb200189aa9b126e448db93
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Jul 23 12:42:00 2020 +0200

    Fix overflow in implicit type conversion
    
    This was introduced in
    456ee529a787dfa44b53f0e2fb6a7e18d693cc20

diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c
index eba8232..6142196 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -1265,7 +1265,7 @@ cb_getRingEdges(const LWT_BE_TOPOLOGY* topo,
         cberror(topo->be_data, "Edge %d" /*LWTFMT_ELEMID*/
                                " has NULL next_%s_edge",
                                val, sidetext);
-        *numelems = UINT64_MAX;
+        *numelems = -1;
         return NULL;
       }
       nextedge = DatumGetInt32(dat);
@@ -1278,7 +1278,7 @@ cb_getRingEdges(const LWT_BE_TOPOLOGY* topo,
         cberror(topo->be_data, "Corrupted topology: ring of edge %"
                                LWTFMT_ELEMID " is topologically non-closed",
                                edge);
-        *numelems = UINT64_MAX;
+        *numelems = -1;
         return NULL;
       }
     }

-----------------------------------------------------------------------

Summary of changes:
 topology/postgis_topology.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list