2
0
Alex 2 жил өмнө
parent
commit
c6c95b69f6

+ 1 - 3
code/AssetLib/MDL/MDLMaterialLoader.cpp

@@ -481,9 +481,7 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
         pcNew->achFormatHint[2] = 's';
         pcNew->achFormatHint[3] = '\0';
 
-        if (szCurrent + pcNew->mWidth > this->mBuffer + this->iFileSize) {
-            throw DeadlyImportError("Invalid MDL file. Unexpected EOF");
-        }
+        SizeCheck(szCurrent + pcNew->mWidth);
 
         pcNew->pcData = (aiTexel *)new unsigned char[pcNew->mWidth];
         memcpy(pcNew->pcData, szCurrent, pcNew->mWidth);