CMS: Fix possible overflow access (#6052)

- closes https://github.com/assimp/assimp/issues/6010
This commit is contained in:
Kim Kulling
2025-03-13 21:10:49 +01:00
committed by GitHub
parent e8a6286542
commit 2690e354da

View File

@@ -150,7 +150,7 @@ void CSMImporter::InternReadFile( const std::string& pFile,
aiNodeAnim* nda = anims_temp.back();
char* ot = nda->mNodeName.data;
while (!IsSpaceOrNewLine(*buffer)) {
while (!IsSpaceOrNewLine(*buffer) && buffer != end) {
*ot++ = *buffer++;
}