diff options
author | Zack Middleton <zturtleman@gmail.com> | 2014-05-25 15:59:09 -0500 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2014-06-17 17:43:42 +0100 |
commit | 8a5f17823ed88b179492eb6e7f9cade526034652 (patch) | |
tree | adfc2148600f775a43216716515ca4de31143d47 | |
parent | f38f1ac0608d0408c399212f33c1547dae1eea37 (diff) |
Fix potential out of bounds access caused by CM_GridPlane
Coverity doesn't care if there is a warning, out of bounds access is bad.
-rw-r--r-- | src/qcommon/cm_patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qcommon/cm_patch.c b/src/qcommon/cm_patch.c index 1234512b..d4c28eef 100644 --- a/src/qcommon/cm_patch.c +++ b/src/qcommon/cm_patch.c @@ -608,7 +608,7 @@ static int CM_GridPlane( int gridPlanes[MAX_GRID_SIZE][MAX_GRID_SIZE][2], int i, } // should never happen - Com_Printf( "WARNING: CM_GridPlane unresolvable\n" ); + Com_Error( ERR_DROP, "CM_GridPlane unresolvable" ); return -1; } |