Open
Bug 1766971
Opened 2 years ago
Updated 2 years ago
Review json-streaming code that could skip adjacent entries of the same type
Categories
(Core :: Gecko Profiler, task, P2)
Core
Gecko Profiler
Tracking
()
NEW
People
(Reporter: mozbugz, Unassigned)
References
Details
Bug 1763176 showed a problem when two counters were adjacent, because of code like this:
while (e.Has) {
if (e.Get().IsCounterId()) {
e.Next();
// ... Read counter's payload entries.
}
e.Next(); // <-- Unconditional! Could skip the next counter if we've just read one.
}
I'm afraid there could be other instances of this pattern, we should review the whole streaming code to catch these, if any.
You need to log in
before you can comment on or make changes to this bug.
Description
•