Re: Memory corruption in file_to_string and file_to_string_alloc?

From: George Greer (greerga@circlemud.org)
Date: 11/13/01


On Tue, 13 Nov 2001, Mike Breuer wrote:

>Looks like a bug to me alright.  Most places in the code use
>showstr_count to determine whether showstr_vector is valid.  So if you
>want to be consistent, change the above line to:

Doh. Yes, they do.

>    if (in_use->showstr_count && *in_use->showstr_vector == *buf)
>
>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.

--
George Greer
greerga@circlemud.org

--
   +---------------------------------------------------------------+
   | 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