Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Issue 6542034: Fix for crash in histogram BucketIndex (Closed)

Created:
9 years, 10 months ago by ramant (doing other things)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Added CHECKs to make sure histogram caller's don't create histogram that are larger 1G. Added CHECK's to catch bucket_count_ is not corrupted before accessing ranges_ vector. BUG=73452 TEST=none. histogram unit tests are enough. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75804

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M base/metrics/histogram.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M base/metrics/histogram.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ramant (doing other things)
Hi Jim, A cut at adding checks that bucket_count_ was not corrupted by memory thrashers. ...
9 years, 10 months ago (2011-02-19 21:07:55 UTC) #1
ramant (doing other things)
Hi Jim, Removed all the checks except the mid+1 check (and the small tweaks for ...
9 years, 10 months ago (2011-02-23 02:31:19 UTC) #2
jar (doing other things)
LGTM I'd really like to see a smaller number, such as 10,000. You mentioned that ...
9 years, 10 months ago (2011-02-23 18:49:33 UTC) #3
ramant (doing other things)
9 years, 10 months ago (2011-02-23 22:34:34 UTC) #4
On 2011/02/23 18:49:33, jar wrote:
> LGTM
> 
> I'd really like to see a smaller number, such as 10,000.  You mentioned that
> someone is using 64,000, and I'd like to get that fixed, so we can have a
lower
> threshold.
> 
> Once you support sparse histograms, the limit could probably drop down to
> something more like 1000 for routine histograms.

Hi Jim,
  Changed the max bucket_count to 10,000.
thanks.

Powered by Google App Engine
This is Rietveld 408576698