Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot, Yandex

Members: 0
Guests: 2
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Bugfix Lists » SmaugFUSS Bugfix List » [Bug] check_reconnect crash w...
Forum Rules | Mark all | Recent Posts

[Bug] check_reconnect crash with large buffer display
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Nov 19, 2006, 1:24 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Bug: check_reconnect crash with large buffer display
Danger: Medium - Crash requires special conditions.
Found by: Remcon
Fixed by: Remcon

---

comm.c, check_reconnect

Locate:
            send_to_char( "Reconnecting.\r\n", ch );
            do_look( ch, "auto" );
            act( AT_ACTION, "$n has reconnected.", ch, NULL, NULL, TO_CANSEE );
            log_printf_plus( LOG_COMM, UMAX( sysdata.log_level, ch->level ), "%s (%s) reconnected.", ch->name, d->host );
            d->connected = CON_PLAYING;


Change to:
            send_to_char( "Reconnecting.\r\n", ch );
            act( AT_ACTION, "$n has reconnected.", ch, NULL, NULL, TO_CANSEE );
            log_printf_plus( LOG_COMM, UMAX( sysdata.log_level, ch->level ), "%s (%s) reconnected.", ch->name, d->host );
            d->connected = CON_PLAYING;
            do_look( ch, "auto" );


If you are booted from your link by a room full of enough things to overflow your buffer, reconnecting crashes the game. The same would likely apply for a large amount of log spam from a broken file. For whatever reason moving the call to do_look down to below where CON_PLAYING is set will stop the problem.
       
Pages:<< prev 1 next >>