[postgis-tickets] r14969 - Use int for iterating over geometry index

Sandro Santilli strk at kbt.io
Thu Jun 16 07:06:47 PDT 2016


Author: strk
Date: 2016-06-16 07:06:47 -0700 (Thu, 16 Jun 2016)
New Revision: 14969

Modified:
   trunk/liblwgeom/lwgeom_wrapx.c
Log:
Use int for iterating over geometry index

Avoids a potential infinite loop on split error (see #454)

Modified: trunk/liblwgeom/lwgeom_wrapx.c
===================================================================
--- trunk/liblwgeom/lwgeom_wrapx.c	2016-06-16 14:04:27 UTC (rev 14968)
+++ trunk/liblwgeom/lwgeom_wrapx.c	2016-06-16 14:06:47 UTC (rev 14969)
@@ -122,7 +122,7 @@
 {
 	LWGEOM** wrap_geoms;
 	LWCOLLECTION* out;
-	size_t i;
+	int i;
 	int outtype = lwcoll_in->type;
 
 	wrap_geoms = lwalloc(lwcoll_in->ngeoms * sizeof(LWGEOM*));



More information about the postgis-tickets mailing list