commit | 6715e7476eff0e83e07a0327b50b2034eab7e3c0 | [log] [tgz] |
---|---|---|
author | Lalit Maganti <lalitm@google.com> | Sat Oct 19 01:11:41 2024 +0100 |
committer | Lalit Maganti <lalitm@google.com> | Sat Oct 19 00:33:59 2024 +0000 |
tree | c9fc79f01854c106e9d67f5c91a5648a096b1fb4 | |
parent | 37b4e06584eddd0709b26ea7aa2723c61f50746b [diff] |
tp: fix crash when parsing JSON traces Fixes: https://github.com/google/perfetto/issues/911 Change-Id: Iff4e3f3aa6dfaa291ed8924cc22e2761ee862496
diff --git a/src/trace_processor/importers/common/track_tracker.cc b/src/trace_processor/importers/common/track_tracker.cc index 3237226..2ac631b 100644 --- a/src/trace_processor/importers/common/track_tracker.cc +++ b/src/trace_processor/importers/common/track_tracker.cc
@@ -391,7 +391,7 @@ if (it) return *it; - StringId name; + StringId name = kNullStringId; if (type == TrackClassification::kTrigger) name = context_->storage->InternString("Trace Triggers"); if (type == TrackClassification::kInterconnect) @@ -705,7 +705,7 @@ uint32_t upid, int64_t correlation_id) { return LegacyInternLegacyChromeAsyncTrack(name, upid, correlation_id, false, - StringId()); + kNullStringId); } TrackId TrackTracker::LegacyInternLegacyChromeAsyncTrack(