diff options
author | Eike Ziller <eike.ziller@qt.io> | 2017-01-25 16:27:49 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2017-01-25 16:27:49 +0100 |
commit | a93fc0a4fecada3a1ae0b897ff71e7f7b5b73f3b (patch) | |
tree | 656f37741fa6a2bef17e46388da377b2cecbb79b /src/shared/proparser | |
parent | 3c743346b07e0a80817737580bfa6d6c556c88e2 (diff) | |
parent | 23a2eff60dff034de15d041fca11d712bfa02922 (diff) |
Merge remote-tracking branch 'origin/4.2'
Conflicts:
qbs/modules/qtc/qtc.qbs
qtcreator.pri
Change-Id: Ia6083434a811fc975696edf126df101ec8040f49
Diffstat (limited to 'src/shared/proparser')
-rw-r--r-- | src/shared/proparser/profileevaluator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/proparser/profileevaluator.cpp b/src/shared/proparser/profileevaluator.cpp index 99f4fe0262..60319672a4 100644 --- a/src/shared/proparser/profileevaluator.cpp +++ b/src/shared/proparser/profileevaluator.cpp @@ -152,6 +152,10 @@ QVector<ProFileEvaluator::SourceFile> ProFileEvaluator::absoluteFileValues( } { int nameOff = absEl.lastIndexOf(QLatin1Char('/')); + if (nameOff < 0) { + // The entry is garbage (possibly after env var expansion) + goto next; + } QString absDir = d->m_tmp1.setRawData(absEl.constData(), nameOff); if (IoUtils::exists(absDir)) { QString wildcard = d->m_tmp2.setRawData(absEl.constData() + nameOff + 1, |