From 8a5f17823ed88b179492eb6e7f9cade526034652 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 25 May 2014 15:59:09 -0500 Subject: 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. --- src/qcommon/cm_patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qcommon') 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; } -- cgit