mirror of
https://github.com/ioquake/ioq3.git
synced 2025-05-30 00:20:59 +00:00
Check for buffer overflow for rail/lightning surfaces
This commit is contained in:
parent
dde36d91ce
commit
cc9072d098
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue