forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user