[postgis-tickets] r14733 - #3479 Fix assertion crash added after initial fix
Paul Ramsey
pramsey at cleverelephant.ca
Tue Mar 1 10:21:42 PST 2016
Author: pramsey
Date: 2016-03-01 10:21:42 -0800 (Tue, 01 Mar 2016)
New Revision: 14733
Modified:
trunk/liblwgeom/kmeans.c
Log:
#3479 Fix assertion crash added after initial fix
Modified: trunk/liblwgeom/kmeans.c
===================================================================
--- trunk/liblwgeom/kmeans.c 2016-03-01 18:14:30 UTC (rev 14732)
+++ trunk/liblwgeom/kmeans.c 2016-03-01 18:21:42 UTC (rev 14733)
@@ -260,7 +260,7 @@
assert(config->centers);
assert(config->k);
assert(config->clusters);
- assert(config->k < config->num_objs);
+ assert(config->k <= config->num_objs);
/* Zero out cluster numbers, just in case user forgets */
memset(config->clusters, 0, clusters_sz);
More information about the postgis-tickets
mailing list