Skip to content

Commit 2690e35

Browse files
authored
CMS: Fix possible overflow access (assimp#6052)
- closes assimp#6010
1 parent e8a6286 commit 2690e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/AssetLib/CSM/CSMLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void CSMImporter::InternReadFile( const std::string& pFile,
150150
aiNodeAnim* nda = anims_temp.back();
151151

152152
char* ot = nda->mNodeName.data;
153-
while (!IsSpaceOrNewLine(*buffer)) {
153+
while (!IsSpaceOrNewLine(*buffer) && buffer != end) {
154154
*ot++ = *buffer++;
155155
}
156156

0 commit comments

Comments
 (0)