Check for buffer overflow for rail/lightning surfaces
This commit is contained in:
@@ -344,6 +344,8 @@ static void DoRailCore( const vec3_t start, const vec3_t end, const vec3_t up, f
|
|||||||
int vbase;
|
int vbase;
|
||||||
float t = len / 256.0f;
|
float t = len / 256.0f;
|
||||||
|
|
||||||
|
RB_CHECKOVERFLOW( 4, 6 );
|
||||||
|
|
||||||
vbase = tess.numVertexes;
|
vbase = tess.numVertexes;
|
||||||
|
|
||||||
spanWidth2 = -spanWidth;
|
spanWidth2 = -spanWidth;
|
||||||
|
@@ -627,6 +627,8 @@ static void DoRailCore( const vec3_t start, const vec3_t end, const vec3_t up, f
|
|||||||
int vbase;
|
int vbase;
|
||||||
float t = len / 256.0f;
|
float t = len / 256.0f;
|
||||||
|
|
||||||
|
RB_CHECKOVERFLOW( 4, 6 );
|
||||||
|
|
||||||
vbase = tess.numVertexes;
|
vbase = tess.numVertexes;
|
||||||
|
|
||||||
spanWidth2 = -spanWidth;
|
spanWidth2 = -spanWidth;
|
||||||
|
Reference in New Issue
Block a user