mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
4c345ed272
- Use Makefile for building instead of scons, and remove Perl dependency. - Use pkg-plist. - Add OPTIONS. Allow to build without X11, threaded version, etc. - Fix building on non-i386 and FreeBSD 4.X. - Respect CFLAGS when optimizations are enabled. - Add patch to fix 2 security vulnerabilities [1]. PR: ports/98295 Submitted by: alepulver (myself) Approved by: maintainer (timeout) Obtained from: q3icculus (http://icculus.org/quake3/) [1] Security: CVE-2006-2082 [1]
30 lines
982 B
C
30 lines
982 B
C
--- ./code/renderer/tr_shader.c.orig Wed May 31 20:52:08 2006
|
|
+++ ./code/renderer/tr_shader.c Wed May 31 20:56:20 2006
|
|
@@ -99,7 +99,7 @@
|
|
|
|
// remap all the shaders with the given name
|
|
// even tho they might have different lightmaps
|
|
- COM_StripExtension( shaderName, strippedName );
|
|
+ COM_StripExtension( shaderName, strippedName, sizeof(strippedName) );
|
|
hash = generateHashValue(strippedName, FILE_HASH_SIZE);
|
|
for (sh = hashTable[hash]; sh; sh = sh->next) {
|
|
if (Q_stricmp(sh->name, strippedName) == 0) {
|
|
@@ -2368,7 +2368,7 @@
|
|
return tr.defaultShader;
|
|
}
|
|
|
|
- COM_StripExtension( name, strippedName );
|
|
+ COM_StripExtension( name, strippedName, sizeof(strippedName) );
|
|
|
|
hash = generateHashValue(strippedName, FILE_HASH_SIZE);
|
|
|
|
@@ -2436,7 +2436,7 @@
|
|
lightmapIndex = LIGHTMAP_BY_VERTEX;
|
|
}
|
|
|
|
- COM_StripExtension( name, strippedName );
|
|
+ COM_StripExtension( name, strippedName, sizeof(strippedName) );
|
|
|
|
hash = generateHashValue(strippedName, FILE_HASH_SIZE);
|
|
|