]> granicus.if.org Git - postgis/commitdiff
Fix for segfault in ANALYZE due to incorrect use of legacy BOX type within compute_ge...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Wed, 16 Jul 2008 08:42:34 +0000 (08:42 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Wed, 16 Jul 2008 08:42:34 +0000 (08:42 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2864 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_estimate.c

index 6c6e107cbf522b59c5f7175ce26432678e7950da..f388b2edf85199c79d4456a785c480d28088a687 100644 (file)
@@ -990,8 +990,8 @@ compute_geometry_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
                        continue;
                }
                if ( ! newhistobox ) {
-                       newhistobox = palloc(sizeof(BOX));
-                       memcpy(newhistobox, box, sizeof(BOX));
+                       newhistobox = palloc(sizeof(BOX2DFLOAT4));
+                       memcpy(newhistobox, box, sizeof(BOX2DFLOAT4));
                } else {
                        if ( box->xmin < newhistobox->xmin )
                                newhistobox->xmin = box->xmin;