Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
There are currently no members online.

Members: 0
Guests: 31
Stats
Files
Topics
Posts
Members
Newest Member
489
3,791
19,644
596
Elwood

Today's Birthdays
There are no member birthdays today.
» SmaugMuds » Bugfix Lists » SmaugFUSS Bugfix List » [Bug] Potential Stack Overwri...
Forum Rules | Mark all | Recent Posts

[Bug] Potential Stack Overwrite when displaying prompts
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 4, 2010 5:01 pm   
Go to the top of the page
Go to the bottom of the page

InfiniteAxis
Off the Edge of the Map
GroupAdministrators
Posts1,200
JoinedMar 21, 2006

 
Bug: Potential Stack Overwrite in display_prompt
Danger: Minor - Probably never see it actually happen, but the chance is there.
Found by: Nick Gammon
Fixed by: Nick Gammon

---

comm.c, display_prompt;
Find:
            if( pstat != 0x80000000 )
               snprintf( pbuf, MAX_STRING_LENGTH, "%d", pstat );
            pbuf += strlen( pbuf );


Replace with:
            if( pstat != 0x80000000 )
               snprintf( pbuf, MAX_STRING_LENGTH - strlen (buf), "%d", pstat );
            pbuf += strlen( pbuf );

Pages:<< prev 1 next >>