DescriptionFix overflow when logging MaxInt32 to a sparse histogram.
The problem was that a bucket gets reported with an inclusive
min value and exclusive max value, so max must to be +1 of
the sample value for a sparse histogram value.
Because the code wasn't handling this specifically, it caused the
bucket max to be reported as a MinInt32 due to overflow of a 32
bit value. This CL changes the relevant iterator API to use int64_t
for the max, to support MaxInt32 being logged.
BUG=716600
TBR=jbauman@chromium.org, groby@chromium.org
Review-Url: https://codereview.chromium.org/2853853002
Cr-Commit-Position: refs/heads/master@{#469136}
Committed: https://chromium.googlesource.com/chromium/src/+/3f17b1463420e026459e2d7fde6335cf5e9b1852
Patch Set 1 #
Total comments: 6
Patch Set 2 : Address comments. #Messages
Total messages: 49 (38 generated)
|