Skip to content

Commit

Permalink
Don't get stuck reading 0-sized build id headers
Browse files Browse the repository at this point in the history
Newer perf seems to emit such an entry which made us get stuck
in an infinite loop.

Change-Id: Ifdd68b786ad341f17e76deb4ce52996689a2bbca
  • Loading branch information
milianw committed Dec 17, 2024
1 parent d06b6dc commit e64b883
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/perffeatures.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ QDataStream &operator>>(QDataStream &stream, PerfBuildId &buildId)
while (next < buildId.size) {
PerfEventHeader header;
stream >> header;
if (!header.size)
break;

PerfBuildId::BuildId build;
stream >> build.pid;
Expand Down

0 comments on commit e64b883

Please sign in to comment.