summaryrefslogtreecommitdiff
path: root/modules/fbx/fbx_parser/FBXTokenizer.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-16 08:41:46 +0200
committerGitHub <noreply@github.com>2021-04-16 08:41:46 +0200
commit88015f4e72ccdede184da0ce962651dbb85a0818 (patch)
treeb81b2223a9571a52f3f7e1775a8bf73a944d41f5 /modules/fbx/fbx_parser/FBXTokenizer.cpp
parentdddbde82caf2aa42290055348bdf2cfd1b268e22 (diff)
parent061b77e5e6c6e3f446734bf214e395e7e6f1a4b4 (diff)
Merge pull request #47880 from RevoluPowered/fix-fbx-parser
FBX Improve Parser and File Compatibility
Diffstat (limited to 'modules/fbx/fbx_parser/FBXTokenizer.cpp')
-rw-r--r--modules/fbx/fbx_parser/FBXTokenizer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/fbx/fbx_parser/FBXTokenizer.cpp b/modules/fbx/fbx_parser/FBXTokenizer.cpp
index ea4568fe32..81c5b128e8 100644
--- a/modules/fbx/fbx_parser/FBXTokenizer.cpp
+++ b/modules/fbx/fbx_parser/FBXTokenizer.cpp
@@ -141,7 +141,7 @@ void ProcessDataToken(TokenList &output_tokens, const char *&start, const char *
} // namespace
// ------------------------------------------------------------------------------------------------
-void Tokenize(TokenList &output_tokens, const char *input, size_t length) {
+void Tokenize(TokenList &output_tokens, const char *input, size_t length, bool &corrupt) {
// line and column numbers numbers are one-based
unsigned int line = 1;
unsigned int column = 1;
@@ -185,6 +185,8 @@ void Tokenize(TokenList &output_tokens, const char *input, size_t length) {
case '\"':
if (token_begin) {
TokenizeError("unexpected double-quote", line, column);
+ corrupt = true;
+ return;
}
token_begin = cur;
in_double_quotes = true;