AC3D: Fix read past end of buffer

This commit is contained in:
Turo Lamminen
2015-08-11 15:44:51 +03:00
parent 4cc716a0f5
commit d185cea81c

View File

@@ -89,6 +89,9 @@ static const aiImporterDesc desc = {
// ------------------------------------------------------------------------------------------------
// read a string (may be enclosed in double quotation marks). buffer must point to "
#define AI_AC_GET_STRING(out) \
if (*buffer == '\0') { \
throw DeadlyImportError("AC3D: Unexpected EOF in string"); \
} \
++buffer; \
const char* sz = buffer; \
while ('\"' != *buffer) \