浏览代码

# really fix false negative reading compressed x files. Silently ignore out-of-bounds indices.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1017 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 14 年之前
父节点
当前提交
228be125cf
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      code/XFileParser.cpp

+ 0 - 4
code/XFileParser.cpp

@@ -200,10 +200,6 @@ XFileParser::XFileParser( const std::vector<char>& pBuffer)
 			// and advance to the next offset
 			// and advance to the next offset
 			P1 += ofs;
 			P1 += ofs;
 			est_out += MSZIP_BLOCK; // one decompressed block is 32786 in size
 			est_out += MSZIP_BLOCK; // one decompressed block is 32786 in size
-
-			// this block would continue past the file end, abort
-			if (P1 > End+1)
-				throw DeadlyImportError("X: Unexpected end of file while uncompressing");
 		}
 		}
 		
 		
 		// Allocate storage and terminating zero and do the actual uncompressing
 		// Allocate storage and terminating zero and do the actual uncompressing