]> granicus.if.org Git - postgis/commitdiff
#3436, memory handling mistake in ptarray_clone_deep
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 19 Jan 2016 17:07:49 +0000 (17:07 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 19 Jan 2016 17:07:49 +0000 (17:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14610 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/ptarray.c

index 7fa7505878768f530fe093cd8f488812227e452c..b06cb606fc3ebf7ff20966c5ba69de7d0d6ac151 100644 (file)
@@ -640,7 +640,7 @@ ptarray_clone_deep(const POINTARRAY *in)
 
        out->flags = in->flags;
        out->npoints = in->npoints;
-       out->maxpoints = in->maxpoints;
+       out->maxpoints = in->npoints;
 
        FLAGS_SET_READONLY(out->flags, 0);