From 9de9674afc1bbbb4b43fdda8617addb1791715ce Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 4 Mar 2015 11:49:10 +0000 Subject: [PATCH] Remove some useless paranoid comparisons. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12178 d7cf8633-e32d-0410-b094-e92efae38249 --- fs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs.c b/fs.c index 5b9c1497..67d13f93 100644 --- a/fs.c +++ b/fs.c @@ -587,8 +587,8 @@ static qboolean PK3_GetEndOfCentralDir (const char *packfile, int packhandle, pk Mem_Free (buffer); if ( - eocd->cdir_size < 0 || eocd->cdir_size > filesize || - eocd->cdir_offset < 0 || eocd->cdir_offset >= filesize || + eocd->cdir_size > filesize || + eocd->cdir_offset >= filesize || eocd->cdir_offset + eocd->cdir_size > filesize ) { -- 2.39.2