Merge pull request #5128 from sashashura/5093294573486080

Fix UNKNOWN READ in Assimp::MDLImporter::ParseSkinLump_3DGS_MDL7
pull/5148/head^2
Kim Kulling 2023-06-27 22:08:29 +02:00 committed by GitHub
commit 8f61427880
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -481,6 +481,8 @@ void MDLImporter::ParseSkinLump_3DGS_MDL7(
pcNew->achFormatHint[2] = 's';
pcNew->achFormatHint[3] = '\0';
SizeCheck(szCurrent + pcNew->mWidth);
pcNew->pcData = (aiTexel *)new unsigned char[pcNew->mWidth];
memcpy(pcNew->pcData, szCurrent, pcNew->mWidth);
szCurrent += iWidth;