[comp.sources.bugs] Conquest dumps core!! -- Hahah lucky that's all!

crds@ncoast.UUCP (11/10/87)

I found major problems in the following modules (all related):

      combat.c    npc.c    update.c

The problem(s) is(are):  Arrays being accessed out of bounds, causing improper
updates and memory management violations (on my system it watches for these).
Some are not obvious bugs ie. for(var=1;var<MAXvar;var++) SHOULD start at 0,
and DOES in fact for some, but NOT all of the updates.... others are simply
not being checked ie. for(var1=0;var1<MAXvar1;var1++) for(var2=var1-1;var2<=
var1+1;var2++) and then references to vararray(var2,etc.etc.) which is a
problem for the first and last elements.  Too many to list specifically.  I
believe I have all three modules corrected properly (I spent several days); I
no longer get suspended processes at all, and conquest seems to work great.  I
am willing to post these modules in their updated form, if I get enough
requests; otherwise, happy hunting!

Glenn A. Emelko
crds@ncoast.UUCP

PS: Those of you who are claiming it works great -- I sure hope your machine
is paying attention to what is being accessed, you just might have a bigger
problem yet to materialize from running conquest (maybe something at the core
level -- gasp -- I hope not!).