• R/O
  • SSH

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

This is a fork of Zandronum used on servers hosted by The Sentinels Playground (TSPG).


コミットメタ情報

リビジョン49b59a3b555866406356c00d93666d68b297195b (tree)
日時2009-04-19 16:43:42
作者Benjamin Berkels <torr.samaho@quan...>
コミッターBenjamin Berkels

ログメッセージ

ported changes of the main trunk from revision 2066-2067:
- Removed unnecessarily linked libraries
- Fixed: The RCON utility crashed when somebody said a chat string with "%n" or similar printf compatible format parameters. Again thanks to kgsws for reporting.

SVN r2068 (0.97d3-hotfixes)

変更サマリ

差分

diff -r 1bf12a433252 -r 49b59a3b5558 docs/Skulltag Version History.txt
--- a/docs/Skulltag Version History.txt Fri Apr 17 21:36:56 2009 +0000
+++ b/docs/Skulltag Version History.txt Sun Apr 19 07:43:42 2009 +0000
@@ -17,6 +17,7 @@
1717
1818 - - Fixed a critical security bug of the server. Thanks a lot to kgsws for submitting a detailed report on this issue along with an implementation of the exploit. [Torr Samaho]
1919 - - Fixed: A malicious client could skip the map authentication. Thanks to kgsws for his detailed report on this. [Torr Samaho]
20+- - Fixed: The RCON utility crashed when somebody said a chat string with "%n" or similar printf compatible format parameters. Again thanks to kgsws for reporting. [Torr Samaho]
2021 ! - Changed: All line breaks are removed from the comment when an entry is added to the banlist or whitelist. Thanks to kgsws for pointing me to this. [Torr Samaho]
2122
2223 v0.97d3
diff -r 1bf12a433252 -r 49b59a3b5558 rcon_utility/main.cpp
--- a/rcon_utility/main.cpp Fri Apr 17 21:36:56 2009 +0000
+++ b/rcon_utility/main.cpp Sun Apr 19 07:43:42 2009 +0000
@@ -744,8 +744,9 @@
744744 break;
745745 case SVRC_MESSAGE:
746746
747+ // [BB] The string may contain format parameters like %n, so we may not use Printf!
747748 if ( g_State == STATE_CONNECTED )
748- Printf( NETWORK_ReadString( pByteStream ));
749+ MAIN_Print( true, NETWORK_ReadString( pByteStream ));
749750 break;
750751 case SVRC_UPDATE:
751752
@@ -907,13 +908,13 @@
907908 void VPrintf( bool bTimestamp, const char *pszString, va_list Parms )
908909 {
909910 char szOutLine[8192];
910- vsprintf( szOutLine, pszString, Parms );
911+ vsprintf_s( szOutLine, pszString, Parms );
911912 MAIN_Print( bTimestamp, szOutLine );
912913 }
913914
914915 //*****************************************************************************
915916 //
916-void MAIN_Print( bool bTimestamp, char *pszString )
917+void MAIN_Print( bool bTimestamp, const char *pszString )
917918 {
918919 main_UpdateStatusbar( pszString );
919920
diff -r 1bf12a433252 -r 49b59a3b5558 rcon_utility/main.h
--- a/rcon_utility/main.h Fri Apr 17 21:36:56 2009 +0000
+++ b/rcon_utility/main.h Sun Apr 19 07:43:42 2009 +0000
@@ -77,6 +77,6 @@
7777 int Printf( const char *pszString, ... );
7878 int Printf_NoTimestamp( const char *pszString, ... );
7979 void VPrintf( bool bTimestamp, const char *pszString, va_list Parms );
80-void MAIN_Print( bool bTimestamp, char *pszString );
80+void MAIN_Print( bool bTimestamp, const char *pszString );
8181
8282 #endif // __MAIN_H__
diff -r 1bf12a433252 -r 49b59a3b5558 rcon_utility/rcon_utility.vcproj
--- a/rcon_utility/rcon_utility.vcproj Fri Apr 17 21:36:56 2009 +0000
+++ b/rcon_utility/rcon_utility.vcproj Sun Apr 19 07:43:42 2009 +0000
@@ -1,7 +1,7 @@
11 <?xml version="1.0" encoding="Windows-1252"?>
22 <VisualStudioProject
33 ProjectType="Visual C++"
4- Version="8.00"
4+ Version="8,00"
55 Name="rcon_utility"
66 ProjectGUID="{175EE94F-6232-4618-AE8E-087E51D22E94}"
77 RootNamespace="rcon_utility"
@@ -62,7 +62,7 @@
6262 />
6363 <Tool
6464 Name="VCLinkerTool"
65- AdditionalDependencies="user32.lib wsock32.lib winmm.lib shell32.lib gdi32.lib user32.lib comctl32.lib shell32.lib advapi32.lib comdlg32.lib ole32.lib dxguid.lib dsound.lib ddraw.lib dinput8.lib strmiids.lib wsock32.lib winmm.lib setupapi.lib ws2_32.lib opengl32.lib glu32.lib fmodvc.lib"
65+ AdditionalDependencies="user32.lib wsock32.lib winmm.lib shell32.lib gdi32.lib user32.lib comctl32.lib shell32.lib advapi32.lib comdlg32.lib ole32.lib dxguid.lib dsound.lib ddraw.lib dinput8.lib strmiids.lib wsock32.lib winmm.lib setupapi.lib ws2_32.lib"
6666 OutputFile="./Debug/$(ProjectName).exe"
6767 LinkIncremental="2"
6868 GenerateDebugInformation="true"
@@ -138,7 +138,7 @@
138138 />
139139 <Tool
140140 Name="VCLinkerTool"
141- AdditionalDependencies="gdi32.lib user32.lib comctl32.lib shell32.lib advapi32.lib comdlg32.lib ole32.lib dxguid.lib dsound.lib ddraw.lib dinput8.lib strmiids.lib wsock32.lib winmm.lib fmodvc.lib setupapi.lib ws2_32.lib opengl32.lib glu32.lib"
141+ AdditionalDependencies="gdi32.lib user32.lib comctl32.lib shell32.lib advapi32.lib comdlg32.lib ole32.lib dxguid.lib dsound.lib ddraw.lib dinput8.lib strmiids.lib wsock32.lib winmm.lib setupapi.lib ws2_32.lib"
142142 OutputFile="./Release/$(ProjectName).exe"
143143 />
144144 <Tool