AC3D: Fix read past end of buffer

pull/632/head
Turo Lamminen 2015-08-11 15:44:51 +03:00
parent 4cc716a0f5
commit d185cea81c
1 changed files with 3 additions and 0 deletions

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) \