If a StatisticsCalculator::PeriodicUmaAverage object was created and then deleted without any samples being logged, the destructor would call the Metric() method, which calculated sum_/counter_. However, with no samples logged, counter_ is 0. This was found and verified using UBSan tests; see the bug for more info. BUG=webrtc:5490 R=ivoc@webrtc.org Review URL: https://codereview.webrtc.org/1678773003 Cr-Commit-Position: refs/heads/master@{#11534}
Name: WebRTC URL: http://www.webrtc.org Version: 90 License: BSD License File: LICENSE Description: WebRTC provides real time voice and video processing functionality to enable the implementation of PeerConnection/MediaStream. Third party code used in this project is described in the file LICENSE_THIRD_PARTY.