[postgis-tickets] [SCM] PostGIS branch stable-2.4 updated. 23f268708b50b5126ff505c43cf91fead46d4c3b

git at osgeo.org git at osgeo.org
Wed Aug 5 01:29:25 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.4 has been updated
       via  23f268708b50b5126ff505c43cf91fead46d4c3b (commit)
      from  83eba0d304ddfb0b474827b5c2dba9b9663651a5 (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 23f268708b50b5126ff505c43cf91fead46d4c3b
Author: Sandro Santilli <strk at kbt.io>
Date:   Wed Aug 5 10:28:35 2020 +0200

    Fix overflow in implicit type conversion
    
    This was introduced in
    03e71313c564f735b3b0cf98849f02dff6f048e5

diff --git a/topology/postgis_topology.c b/topology/postgis_topology.c
index a4ce47d..a6cd9aa 100644
--- a/topology/postgis_topology.c
+++ b/topology/postgis_topology.c
@@ -1131,7 +1131,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);
@@ -1144,7 +1144,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