Re: Memory corruption in file_to_string and file_to_string_alloc?

From: Mike Breuer (mbreuer@new.rr.com)
Date: 11/13/01


----- Original Message -----
From: "George Greer" <greerga@CIRCLEMUD.ORG>

> >Personally, I don't like keeping around pointers to memory that is no
longer
> >valid, and I think that a better fix would be in show_string(..)
(modify.c):
>
> Both would be nice.

Well, if we're talking about fixing the stock code, I would actually
recommend the two previously mentioned changes in modify.c, and then going
through and changing the places where showstr_count was used in conditionals
to instead test for showstr_vector == NULL.  A quick grep revealed only
about 4-5 places that would need to be checked/updated.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST