closes https://github.com/assimp/assimp/issues/1459: fix out-of-boundary access error

This commit is contained in:
Kim Kulling
2017-09-29 21:58:58 +02:00
parent b1410f8455
commit c42589460d
2 changed files with 25 additions and 36 deletions
+2 -6
View File
@@ -291,15 +291,11 @@ private:
throw DeadlyImportError("End of file or stream limit was reached");
}
///*#ifdef __arm__
T f;
::memcpy (&f, current, sizeof(T));
//#else*/
// T f = *((const T*)current);
//#endif
Intern :: Getter<SwapEndianess,T,RuntimeSwitch>() (&f,le);
Intern::Getter<SwapEndianess,T,RuntimeSwitch>() (&f,le);
current += sizeof(T);
return f;
}