75eb5eba72
- Backport fix based on patchset for urbanterror [1] [1] https://github.com/Barbatos/ioq3-for-UrbanTerror-4/pull/73 PR: 217911 Submitted by: miwi Approved by: miwi (mentor) MFH: 2017Q2 Security: CVE-2017-6903 Security: e48355d7-1548-11e7-8611-0090f5f2f347 Differential Revision: https://reviews.freebsd.org/D10176
15 lines
354 B
C
15 lines
354 B
C
--- code/qcommon/vm_x86.c.orig 2011-12-24 12:29:32 UTC
|
|
+++ code/qcommon/vm_x86.c
|
|
@@ -90,8 +90,11 @@ static int ftolPtr = (int)qftol0F7F;
|
|
void AsmCall(void);
|
|
static void (*const asmCallPtr)(void) = AsmCall;
|
|
|
|
-
|
|
+#ifdef __clang__
|
|
+ int callMask = 0;
|
|
+#else
|
|
static int callMask = 0;
|
|
+#endif
|
|
|
|
static int instruction, pass;
|
|
static int lastConst = 0;
|