Lars Volker has uploaded this change for review. ( http://gerrit.cloudera.org:8080/12638
Change subject: IMPALA-8264: Fix overflow in SystemStateInfo::ComputeCpuRatios ...................................................................... IMPALA-8264: Fix overflow in SystemStateInfo::ComputeCpuRatios We pass '0' as the initial value to std::accumulate(), which causes it to use int32_t for its internal state, which then overflows when values read from /proc/stat get too large. The fix is to initialize it with '0L' to make it use int64_t. Change-Id: I46dfb7264e85a3da492e383caaa6853d8ef95f35 --- M be/src/util/system-state-info-test.cc M be/src/util/system-state-info.cc M be/src/util/system-state-info.h 3 files changed, 16 insertions(+), 2 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/38/12638/1 -- To view, visit http://gerrit.cloudera.org:8080/12638 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I46dfb7264e85a3da492e383caaa6853d8ef95f35 Gerrit-Change-Number: 12638 Gerrit-PatchSet: 1 Gerrit-Owner: Lars Volker <[email protected]>
