diff options
author | Zack Middleton <zturtleman@gmail.com> | 2014-01-25 21:14:32 -0600 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:38 +0100 |
commit | 8a522623fc0f7b1c7e15cf57ea34b201bbb88b4d (patch) | |
tree | 519ca4460c9c447e7d566b9e1d5392d90a8b1ae1 /src/renderergl1 | |
parent | 7db12693ff89475e377075199a432d68c9591f6b (diff) |
Check for buffer overflow for rail/lightning surfaces
Diffstat (limited to 'src/renderergl1')
-rw-r--r-- | src/renderergl1/tr_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/renderergl1/tr_surface.c b/src/renderergl1/tr_surface.c index 8f0905e7..8bb01229 100644 --- a/src/renderergl1/tr_surface.c +++ b/src/renderergl1/tr_surface.c @@ -345,6 +345,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; |