Sounds like you are doing pointer arithmetic and you went past your null
terminator into memory not allocated to that string.  What code is on line
783 of handler.c?  I'm not familiar with that snippet, as I don't use
them.

> I installed illegal name put now it crashes; first when I added new
> illegal
> names into list -- then some mobs causes crash while fightning. And when I
> removed all illegal names -- then causes some players crash. I ploaded wiz
> and crashes MUD.
>
> Always is same GDB:
> 0x080792d0 in is_name (str=0xbfffa010 "wiz",
>     namelist=0xf0007 <Address 0xf0007 out of bounds>) at handler.c:783
> 783
> (gdb) bt
> #0  0x080792d0 in is_name (str=0xbfffa010 "wiz",
>     namelist=0xf0007 <Address 0xf0007 out of bounds>) at handler.c:783
> #1  0x0807a7af in get_char_room (ch=0x40823a28, room=0xbfffa010,
>     argument=0xbfffa280 "wiz") at handler.c:2034
> #2  0x0807a831 in get_char_world (ch=0x40823a28, argument=0xbfffa280
> "wiz")
>     at handler.c:2062
> #3  0x08065b5a in do_pload (ch=0x40823a28,
>     argument=0x20 <Address 0x20 out of bounds>) at act_wiz.c:4365
> #4  0x0807eaa4 in interpret (ch=0x40823a28, argument=0xbfffe546 "Wiz")
>     at interp.c:587
> #5  0x08066eb6 in substitute_alias (d=0x40814f18,
>     argument=0x4081533d "pload wiz") at alias.c:68
> #6  0x0806845b in game_loop_unix (control=6) at comm.c:792
> #7  0x08068062 in main (argc=2, argv=0x6) at comm.c:437
> #8  0x4003cd06 in __libc_start_main () from /lib/libc.so.6
>
> _________________________________________________________________
> Tired of spam? Get advanced junk mail protection with MSN 8.
> http://join.msn.com/?page=features/junkmail
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>


Reply via email to