On Mon, 2 Mar 1998, Chuck Reed wrote:
>Ok, I've looked around for sprintf statements overflowing bufs but couldn't
>find any. However, this darned memory crash keeps on happening. This is
>the latest gdb output i've gotten:
It could also be strcpy, strcat, etc and over/under writing to an array.
>171 int main(int argc, char **argv)
>172 {
>173 char buf[512];
>
>Does this mean that the global 'buf' has been overrun somewhere?
No, that is a private 'buf', and GDB is fairly useless on memory overruns.
(Unless you go printing the private malloc structures to see what was
overwritten and what is there now.)
--
George Greer - Me@Null.net | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard
+------------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
+------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST