[postgis-tickets] r14610 - #3436, memory handling mistake in ptarray_clone_deep

Paul Ramsey pramsey at cleverelephant.ca
Tue Jan 19 09:07:49 PST 2016


Author: pramsey
Date: 2016-01-19 09:07:49 -0800 (Tue, 19 Jan 2016)
New Revision: 14610

Modified:
   trunk/liblwgeom/ptarray.c
Log:
#3436, memory handling mistake in ptarray_clone_deep 


Modified: trunk/liblwgeom/ptarray.c
===================================================================
--- trunk/liblwgeom/ptarray.c	2016-01-19 17:07:26 UTC (rev 14609)
+++ trunk/liblwgeom/ptarray.c	2016-01-19 17:07:49 UTC (rev 14610)
@@ -640,7 +640,7 @@
 
 	out->flags = in->flags;
 	out->npoints = in->npoints;
-	out->maxpoints = in->maxpoints;
+	out->maxpoints = in->npoints;
 
 	FLAGS_SET_READONLY(out->flags, 0);
 



More information about the postgis-tickets mailing list