Crossfire Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bug related to random maps....




The map path to a random map can become arbitrarily long.
In more places in the code than I evidently found and fixed,
these long strings overrun the buffers allocated for them.

So crashes occur at level 18 of any arbitrary series of random maps.

Simply increasing the buffer size may be a solution, but
how about switching to some dynamic allocation on the size of
the string, perhaps using the "add_string" stuff?

Alternately, I can re-do the naming of random maps so that
they do not become arbitrarily long.  The current naming scheme
allows recovery of the entire string of exits used to
get to the current map.

However, all these buffer overruns will still remain lurking
in the code, perhaps leading to problems.

Thoughts?

PeterM