From 9d74227559d46b85d0c43d395cd280d3de7ae8f4 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 25 May 2014 15:59:09 -0500 Subject: [PATCH] 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. --- code/qcommon/cm_patch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/qcommon/cm_patch.c b/code/qcommon/cm_patch.c index 77cf368f..3a4e37cc 100644 --- a/code/qcommon/cm_patch.c +++ b/code/qcommon/cm_patch.c @@ -607,7 +607,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; }