DescriptionPrevent calling internal metrics code with invalid values.
Currently we can call the internal metrics code in Chrome from the metrics extension with completely arbitrary values; some of which can cause the creation of invalid histograms which in turn can Chrome to crash. This CL sanitizes the inputs to the extension so that the histogram constructed is valid.
Currently this is causing one crash due to code from http://codereview.chromium.org/8819013
This CL fixes the issue with the extension and fixes the crash. The issues with the JS code still needs to be fixed in another CL.
R=jar@chromium.org
BUG=chromium-os:24115
TEST=Tried the repro case for the crash several times to confirm that it isn't happening anymore.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116627
Patch Set 1 #
Total comments: 8
Patch Set 2 : Review changes. #
Total comments: 2
Patch Set 3 : Review changes. #Patch Set 4 : Remove unrelated changes. #Patch Set 5 : 2011 -> 2012 #
Messages
Total messages: 6 (0 generated)
|