diff options
author | Sergey Shambir <sergey.shambir.auto@gmail.com> | 2013-03-04 23:36:09 +0400 |
---|---|---|
committer | Sergey Shambir <sergey.shambir.auto@gmail.com> | 2013-03-05 12:49:06 +0100 |
commit | 23fd6730fa40a3224beecef199754f53cf2a705f (patch) | |
tree | 2550c95a15e9e38c313511d6538040856598952a | |
parent | 659470f940106d1a428cb6373b5d06741cc4ccf3 (diff) | |
download | qt-creator-23fd6730fa40a3224beecef199754f53cf2a705f.tar.gz |
Autotools: fixed crash in Debug build
Method parseIdentifierBeforeAssign attempts to read null-terminating
symbol after end in some cases, it triggers assertion.
Change-Id: I1a4bc9ef290d2f09e7f9052f14466bacf957fe7a
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
-rw-r--r-- | src/plugins/autotoolsprojectmanager/makefileparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/autotoolsprojectmanager/makefileparser.cpp b/src/plugins/autotoolsprojectmanager/makefileparser.cpp index a6fc4c266d..760dcb9d90 100644 --- a/src/plugins/autotoolsprojectmanager/makefileparser.cpp +++ b/src/plugins/autotoolsprojectmanager/makefileparser.cpp @@ -421,7 +421,7 @@ QString MakefileParser::parseIdentifierBeforeAssign(const QString &line) QString ret = line.left(end); while (end < line.size() && line[end].isSpace()) ++end; - return (line[end] == QLatin1Char('=')) ? ret : QString(); + return (end < line.size() && line[end] == QLatin1Char('=')) ? ret : QString(); } void MakefileParser::addAllSources() |