ac2c14f932
- Make portlint happy. - Allow building the VM on PowerPC. - Fix a typo in option detection code (&& -> ||). - Fix 2 security vulnerabilities [1]. PR: ports/98296 Submitted by: alepulver (myself) Approved by: Linas Valiukas <shirshegsm@gmail.com> (maintainer) Obtained from: q3icculus (http://icculus.org/quake3/) [1] Security: CVE-2006-2082
20 lines
612 B
C
20 lines
612 B
C
--- ./code/qcommon/vm.c.orig Wed May 31 18:55:11 2006
|
|
+++ ./code/qcommon/vm.c Wed May 31 19:08:19 2006
|
|
@@ -225,7 +225,7 @@
|
|
return;
|
|
}
|
|
|
|
- COM_StripExtension( vm->name, name );
|
|
+ COM_StripExtension( vm->name, name, sizeof(name) );
|
|
Com_sprintf( symbols, sizeof( symbols ), "vm/%s.map", name );
|
|
len = FS_ReadFile( symbols, (void **)&mapfile );
|
|
if ( !mapfile ) {
|
|
@@ -826,7 +826,7 @@
|
|
|
|
|
|
|
|
-#ifdef oDLL_ONLY // bk010215 - for DLL_ONLY dedicated servers/builds w/o VM
|
|
+#ifdef DLL_ONLY // bk010215 - for DLL_ONLY dedicated servers/builds w/o VM
|
|
int VM_CallCompiled( vm_t *vm, int *args ) {
|
|
return(0);
|
|
}
|