Check for buffer overflow for rail/lightning surfaces

This commit is contained in:
Zack Middleton committed 2014-01-25 21:15:36 -06:00
1 parent dde36d91ce
commit cc9072d098
2 files changed
+4

No files matched your search

+2
View File
@@ -344,6 +344,8 @@ static void DoRailCore( const vec3_t start, const vec3_t end, const vec3_t up, f
int vbase;
float t = len / 256.0f;
RB_CHECKOVERFLOW( 4, 6 );
vbase = tess.numVertexes;
spanWidth2 = -spanWidth;
+2
View File
@@ -627,6 +627,8 @@ static void DoRailCore( const vec3_t start, const vec3_t end, const vec3_t up, f
int vbase;
float t = len / 256.0f;
RB_CHECKOVERFLOW( 4, 6 );
vbase = tess.numVertexes;
spanWidth2 = -spanWidth;