Valgrind: Fix crash when missing stacks

Change-Id: I69896f0d0c428f158bdb071b08a1c4b9f031183f
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Hannes Domani
2017-12-13 20:09:49 +01:00
parent bb62fd3e56
commit 306d3f2ac7

View File

@@ -485,6 +485,10 @@ void Parser::Private::parseError()
while (auxs.size() < frames.size())
auxs.prepend(XauxWhat());
//add empty stacks until sizes match
while (frames.size() < auxs.size())
frames.push_back(QVector<Frame>());
QVector<Stack> stacks;
for (int i = 0; i < auxs.size(); ++i)
stacks.append(makeStack(auxs[i], frames[i]));