[postgis-tickets] r17282 - oops didn't notice was LWPOINT and not LWGEOMGet rid of assert causing ST_3DMakeBox to crash

Regina Obe lr at pcorp.us
Tue Feb 26 06:30:13 PST 2019


Author: robe
Date: 2019-02-26 06:30:13 -0800 (Tue, 26 Feb 2019)
New Revision: 17282

Modified:
   trunk/postgis/lwgeom_box.c
Log:
oops didn't notice was LWPOINT and not LWGEOMGet rid of assert causing ST_3DMakeBox to crash
References #4331 for PostGIS 3.0


Modified: trunk/postgis/lwgeom_box.c
===================================================================
--- trunk/postgis/lwgeom_box.c	2019-02-25 22:41:36 UTC (rev 17281)
+++ trunk/postgis/lwgeom_box.c	2019-02-26 14:30:13 UTC (rev 17282)
@@ -547,7 +547,7 @@
 		PG_RETURN_NULL();
 	}
 
-	if (lwgeom_is_empty(minpoint) || lwgeom_is_empty(maxpoint) ){
+	if (lwpoint_is_empty(minpoint) || lwpoint_is_empty(maxpoint) ){
 		elog(ERROR, "BOX2D_construct: args can not be empty points");
 		PG_RETURN_NULL();
 	}



More information about the postgis-tickets mailing list