Commit 306d3f2a authored by Hannes Domani's avatar Hannes Domani

Valgrind: Fix crash when missing stacks

Change-Id: I69896f0d0c428f158bdb071b08a1c4b9f031183f
Reviewed-by: default avatarhjk <hjk@qt.io>
parent bb62fd3e
...@@ -485,6 +485,10 @@ void Parser::Private::parseError() ...@@ -485,6 +485,10 @@ void Parser::Private::parseError()
while (auxs.size() < frames.size()) while (auxs.size() < frames.size())
auxs.prepend(XauxWhat()); auxs.prepend(XauxWhat());
//add empty stacks until sizes match
while (frames.size() < auxs.size())
frames.push_back(QVector<Frame>());
QVector<Stack> stacks; QVector<Stack> stacks;
for (int i = 0; i < auxs.size(); ++i) for (int i = 0; i < auxs.size(); ++i)
stacks.append(makeStack(auxs[i], frames[i])); stacks.append(makeStack(auxs[i], frames[i]));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment