Revision: 70447 http://sourceforge.net/p/brlcad/code/70447 Author: brlcad Date: 2017-11-27 15:16:27 +0000 (Mon, 27 Nov 2017) Log Message: ----------- underlying issue being warned is that someone set an upper limit without checking if it got exceeded.
Modified Paths: -------------- brlcad/trunk/src/libnmg/inter.c Modified: brlcad/trunk/src/libnmg/inter.c =================================================================== --- brlcad/trunk/src/libnmg/inter.c 2017-11-27 15:02:52 UTC (rev 70446) +++ brlcad/trunk/src/libnmg/inter.c 2017-11-27 15:16:27 UTC (rev 70447) @@ -1181,7 +1181,8 @@ /* optional: list of new eu1 pieces */ /* optional: list of new eu2 pieces */ { - struct edgeuse *eu[10]; +#define MAX_EU 20 /* arbitrary number of max colinear edges */ + struct edgeuse *eu[MAX_EU]; struct vertexuse *vu[4]; register int i; register int j; @@ -1226,7 +1227,7 @@ /* This step should no longer be necessary, as nmg_ebreaker() * from nmg_break_eu_on_v() should have already handled this. */ for (i=0; i < neu-2; i++) { - for (j=i+1; j < neu-1; j++) { + for (j=i+1; j < neu-1 && j < MAX_EU; j++) { if (!NMG_ARE_EUS_ADJACENT(eu[i], eu[j])) continue; nmg_radial_join_eu(eu[i], eu[j], &(is->tol)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits