This is a fork of Zandronum Beta for Mac Os (Silicon and Intel)
リビジョン | 25f4891078d548376a40b90fb1ef401304008e4f (tree) |
---|---|
日時 | 2007-10-12 12:26:28 |
作者 | Brad Carney <bmc431@gmai...> |
コミッター | Brad Carney |
- Fixed vulnerability that allowed clients to crash all other clients by saying a chat string with "%n".
SVN r836 (beta4-2_b)
@@ -11,6 +11,11 @@ | ||
11 | 11 | = |
12 | 12 | =============================================================================================================== |
13 | 13 | |
14 | +v0.97d-beta4.3 | |
15 | +-------------- | |
16 | + | |
17 | +*- - Fixed vulnerability that allowed clients to crash all other clients by saying a chat string with "%n". [Carnevil] | |
18 | + | |
14 | 19 | v0.97d-beta4.2 |
15 | 20 | -------------- |
16 | 21 |
@@ -599,14 +599,16 @@ | ||
599 | 599 | // |
600 | 600 | void BOTCMD_SetLastChatString( char *pszString ) |
601 | 601 | { |
602 | - sprintf( g_szLastChatString, pszString ); | |
602 | + strncpy( g_szLastChatString, pszString, 255 ); | |
603 | + g_szLastChatString[255] = 0; | |
603 | 604 | } |
604 | 605 | |
605 | 606 | //***************************************************************************** |
606 | 607 | // |
607 | 608 | void BOTCMD_SetLastChatPlayer( char *pszString ) |
608 | 609 | { |
609 | - sprintf( g_szLastChatPlayer, pszString ); | |
610 | + strncpy( g_szLastChatPlayer, pszString, 255 ); | |
611 | + g_szLastChatPlayer[255] = 0; | |
610 | 612 | } |
611 | 613 | |
612 | 614 | //***************************************************************************** |
@@ -40,7 +40,7 @@ | ||
40 | 40 | |
41 | 41 | /** Lots of different version numbers **/ |
42 | 42 | |
43 | -#define DOTVERSIONSTR "0.97d-beta4.2" | |
43 | +#define DOTVERSIONSTR "0.97d-beta4.3" | |
44 | 44 | |
45 | 45 | // [BB] Define DOTVERSIONSTR_NOREV to stay compatible with IWADBoxCallback in I_system.cpp |
46 | 46 | #define DOTVERSIONSTR_NOREV DOTVERSIONSTR |
@@ -64,7 +64,8 @@ | ||
64 | 64 | // NETGAMEVERSION 004 = 0.97c3 |
65 | 65 | // NETGAMEVERSION 005 = 0.97d-beta4 |
66 | 66 | // NETGAMEVERSION 006 = 0.97d-beta4.2 |
67 | -#define NETGAMEVERSION 006 | |
67 | +// NETGAMEVERSION 007 = 0.97d-beta4.3 | |
68 | +#define NETGAMEVERSION 007 | |
68 | 69 | |
69 | 70 | // Version stored in the ini's [LastRun] section. |
70 | 71 | // Bump it if you made some configuration change that you want to |