Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 132341 Details for
Bug 132055
games-fps/vavoom (new ebuild) (Advanced Source port for Doom, Heretic, Hexen and Strife)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
1.24-vulnerabilities.patch
1.24-vulnerabilities.patch (text/plain), 4.39 KB, created by
Davide Cendron (RETIRED)
on 2007-10-01 22:10:10 UTC
(
hide
)
Description:
1.24-vulnerabilities.patch
Filename:
MIME Type:
Creator:
Davide Cendron (RETIRED)
Created:
2007-10-01 22:10:10 UTC
Size:
4.39 KB
patch
obsolete
>--- trunk/vavoom/source/p_acs.cpp 2007/08/29 22:11:13 2684 >+++ trunk/vavoom/source/p_acs.cpp 2007/08/31 16:30:40 2685 >@@ -2486,7 +2486,7 @@ > } > else > { >- BroadcastCentrePrintf(*PrintStr); >+ BroadcastCentrePrint(*PrintStr); > } > ACSVM_BREAK; > >@@ -2649,7 +2649,7 @@ > ACSVM_CASE(PCD_EndPrintBold) > //FIXME yellow message > PrintStr = PrintStr.EvalEscapeSequences(); >- BroadcastCentrePrintf(*PrintStr); >+ BroadcastCentrePrint(*PrintStr); > ACSVM_BREAK; > > // Extended P-Code commands. >@@ -2974,7 +2974,7 @@ > } > else > { >- BroadcastCentrePrintf(*PrintStr); >+ BroadcastCentrePrint(*PrintStr); > } > sp = optstart - 6; > ACSVM_BREAK; >--- trunk/vavoom/source/p_thinker.cpp 2007/08/29 22:11:13 2684 >+++ trunk/vavoom/source/p_thinker.cpp 2007/08/31 16:30:40 2685 >@@ -294,6 +294,21 @@ > > //========================================================================== > // >+// VThinker::BroadcastPrint >+// >+//========================================================================== >+ >+void VThinker::BroadcastPrint(const char *s) >+{ >+ guard(VThinker::BroadcastPrint); >+ for (int i = 0; i < svs.max_clients; i++) >+ if (Level->Game->Players[i]) >+ Level->Game->Players[i]->eventClientPrint(s); >+ unguard; >+} >+ >+//========================================================================== >+// > // VThinker::BroadcastPrintf > // > //========================================================================== >@@ -308,9 +323,22 @@ > vsprintf(buf, s, v); > va_end(v); > >+ BroadcastPrint(buf); >+ unguard; >+} >+ >+//========================================================================== >+// >+// VThinker::BroadcastCentrePrint >+// >+//========================================================================== >+ >+void VThinker::BroadcastCentrePrint(const char *s) >+{ >+ guard(VThinker::BroadcastCentrePrint); > for (int i = 0; i < svs.max_clients; i++) > if (Level->Game->Players[i]) >- Level->Game->Players[i]->eventClientPrint(buf); >+ Level->Game->Players[i]->eventClientCentrePrint(s); > unguard; > } > >@@ -330,9 +358,7 @@ > vsprintf(buf, s, v); > va_end(v); > >- for (int i = 0; i < svs.max_clients; i++) >- if (Level->Game->Players[i]) >- Level->Game->Players[i]->eventClientCentrePrint(buf); >+ BroadcastCentrePrint(buf); > unguard; > } > >@@ -444,7 +470,7 @@ > { > VStr Msg = PF_FormatString(); > P_GET_SELF; >- Self->BroadcastPrintf(*Msg); >+ Self->BroadcastPrint(*Msg); > } > > IMPLEMENT_FUNCTION(VThinker, AllocDlight) >--- trunk/vavoom/source/p_thinker.h 2007/08/29 22:11:13 2684 >+++ trunk/vavoom/source/p_thinker.h 2007/08/31 16:30:40 2685 >@@ -76,7 +76,9 @@ > void AddSoundSequenceChoice(vint32, VName); > void StopSoundSequence(vint32); > >+ void BroadcastPrint(const char*); > void BroadcastPrintf(const char*, ...); >+ void BroadcastCentrePrint(const char*); > void BroadcastCentrePrintf(const char*, ...); > > DECLARE_FUNCTION(Spawn) >--- trunk/vavoom/source/screen.cpp 2007/08/29 19:43:24 2683 >+++ trunk/vavoom/source/screen.cpp 2007/08/29 22:11:13 2684 >@@ -203,6 +203,12 @@ > void *data; > char filename[128]; > >+ if (strlen(screenshot_type) > 8) >+ { >+ GCon->Log("Screenshot extension too long"); >+ return; >+ } >+ > // Find a file name to save it to > VStr BaseDir = (fl_savedir ? fl_savedir : fl_basedir) + "/" + fl_gamedir; > for (i = 0; i <= 9999; i++) >--- trunk/vavoom/source/str.h 2007/08/31 16:30:40 2685 >+++ trunk/vavoom/source/str.h 2007/08/31 17:25:55 2686 >@@ -345,6 +345,8 @@ > { > vint32 Len; > Strm << STRM_INDEX(Len); >+ if (Len < 0) >+ Len = 0; > S.Resize(Len); > if (Len) > Strm.Serialise(S.Str, Len + 1); >--- trunk/vavoom/source/sv_main.cpp 2007/08/15 20:47:29 2647 >+++ trunk/vavoom/source/sv_main.cpp 2007/08/31 16:30:40 2685 >@@ -1431,14 +1431,14 @@ > COMMAND(Map) > { > guard(COMMAND Map); >- char mapname[12]; >+ VStr mapname; > > if (Args.Num() != 2) > { > GCon->Log("map <mapname> : change level"); > return; > } >- VStr::Cpy(mapname, *Args[1]); >+ mapname = Args[1]; > > SV_ShutdownServer(false); > #ifdef CLIENT >@@ -1461,7 +1461,7 @@ > GGameInfo->netgame = svs.max_clients > 1; > GGameInfo->eventInitNewGame(gameskill); > >- SV_SpawnServer(mapname, true); >+ SV_SpawnServer(*mapname, true); > #ifdef CLIENT > if (cls.state != ca_dedicated) > GCmdBuf << "Connect local\n"; >@@ -1624,7 +1624,7 @@ > Text += " "; > Text += Args[i]; > } >- GLevelInfo->BroadcastPrintf(*Text); >+ GLevelInfo->BroadcastPrint(*Text); > GLevelInfo->StartSound(TVec(0, 0, 0), 0, > GSoundManager->GetSoundID("misc/chat"), 0, 1.0, 0); > unguard;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 132055
:
86018
|
86020
|
86437
|
86438
|
90377
|
90874
|
90875
|
92646
|
92647
|
92745
|
93212
|
93213
|
93214
|
93750
|
93751
|
93996
|
93997
|
93998
|
94445
|
95638
|
97585
|
97586
|
98927
|
98928
|
100878
|
101353
|
101362
|
104389
|
104390
|
104932
|
104934
|
104950
|
104951
|
107835
|
110097
|
114704
|
114706
|
120143
|
120145
|
120146
|
120148
|
121294
|
121296
|
122586
|
122587
|
122732
|
122734
|
122735
|
122750
|
122752
|
127280
|
132340
|
132341
|
132952
|
132954
|
137756
|
137757
|
141736
|
142349
|
142350
|
142500
|
142673
|
148886
|
148888
|
157689
|
170775
|
170835
|
171217
|
184901
|
187639
|
187640
|
233793
|
236793
|
244625
|
244627
|
258606
|
282773
|
324270
|
324274