From 228be125cf3d0c54ea9a472a68bdf867d94852af Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Tue, 31 May 2011 13:27:52 +0000 Subject: [PATCH] # 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 --- code/XFileParser.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/code/XFileParser.cpp b/code/XFileParser.cpp index 3e8b509c3..2473b945a 100644 --- a/code/XFileParser.cpp +++ b/code/XFileParser.cpp @@ -200,10 +200,6 @@ XFileParser::XFileParser( const std::vector& pBuffer) // and advance to the next offset P1 += ofs; 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