merge with git://github.com/tonttu/assimp.git
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1029 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -1060,7 +1060,7 @@ std::string XFileParser::GetNextToken()
|
||||
// name token
|
||||
if( End - P < 4) return s;
|
||||
len = ReadBinDWord();
|
||||
if( End - P < len) return s;
|
||||
if( End - P < int(len)) return s;
|
||||
s = std::string(P, len);
|
||||
P += len;
|
||||
return s;
|
||||
@@ -1068,7 +1068,7 @@ std::string XFileParser::GetNextToken()
|
||||
// string token
|
||||
if( End - P < 4) return s;
|
||||
len = ReadBinDWord();
|
||||
if( End - P < len) return s;
|
||||
if( End - P < int(len)) return s;
|
||||
s = std::string(P, len);
|
||||
P += (len + 2);
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user