From: divverent Date: Wed, 4 Mar 2015 11:49:10 +0000 (+0000) Subject: Remove some useless paranoid comparisons. X-Git-Tag: xonotic-v0.8.1~8^2~25 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9de9674afc1bbbb4b43fdda8617addb1791715ce;p=xonotic%2Fdarkplaces.git Remove some useless paranoid comparisons. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12178 d7cf8633-e32d-0410-b094-e92efae38249 --- 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 ) {