[Bug] Potential Stack Overwrite when displaying prompts
< Newer Topic
:: Older Topic >
Pages:<< prev 1 next >>
#1 Feb 4, 2010 5:01 pm
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:
Replace with:
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 >>