Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99616cb7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix out-of-bounds write past end of buckets on long transactions" am:...

Merge "Fix out-of-bounds write past end of buckets on long transactions" am: 898879b9 am: d8ff894f am: f101bf96 am: 05c63caa

Change-Id: Iddfc2aa0049c6ee51fcc2a0b0d4bf1121b6a108b
parents 8e407b67 05c63caa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ struct ProcResults {
        if (time > max_time_bucket) {
            m_long_transactions++;
        }
        m_buckets[min(time, max_time_bucket-1) / time_per_bucket] += 1;
        m_buckets[min((uint32_t)(time / time_per_bucket), num_buckets - 1)] += 1;
        m_best = min(time, m_best);
        m_worst = max(time, m_worst);
        m_transactions += 1;