commit | e594213a2bb6006c41ff1ecc516afc9b024d19ad | [log] [tgz] |
---|---|---|
author | henrik.lundin <henrik.lundin@webrtc.org> | Tue Feb 09 08:35:53 2016 |
committer | Commit bot <commit-bot@chromium.org> | Tue Feb 09 08:36:02 2016 |
tree | 5ba667c97cfa580b34d3349ae34ff084c359b0a1 | |
parent | fd2be2718d984792b949b186ff11ceaf256723d0 [diff] |
Fix div-by-0 in NetEq's StatisticsCalculator 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}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.