henrik.lundin
116c84e1b0
NetEq: Fixing a bug that caused rtc::checked_cast to trigger
...
This is a bug that was introduced in
https://codereview.webrtc.org/1230503003 , where the variable "int
temp_bufsize" was changed to a size_t. If the packet buffer was
flushed while inserting a packet, temp_bufsize became negative, which
was tested later in an if-statement. Now, with size_t instead, it
would just become very large, and the if-statement would never see a
negative value. The effect was that the packet size in samples could
be updated with a very large positive number, causing an overflow
which triggered rtc::checked_cast in
StatisticsCalculator::GetNetworkStatistics, line 220.
Also adding a test to reproduce the crash. Without the fix, the test
results in the above mentioned checked_cast to trigger. With the fix,
everything works fine.
BUG=chromium:525260
Review URL: https://codereview.webrtc.org/1307893004
Cr-Commit-Position: refs/heads/master@{#9802}
2015-08-27 20:14:54 +00:00
..
2015-08-27 20:12:27 +00:00
2015-08-27 13:22:21 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-06-16 08:04:24 +00:00
2015-04-09 13:44:23 +00:00
2015-04-09 13:44:23 +00:00
2015-08-27 13:22:21 +00:00
2015-08-27 13:22:21 +00:00
2015-08-27 13:22:21 +00:00
2014-11-13 08:35:05 +00:00
2014-09-04 10:58:43 +00:00
2015-04-09 13:44:23 +00:00
2015-04-09 13:44:23 +00:00
2014-09-04 10:58:43 +00:00
2015-04-09 13:44:23 +00:00
2015-04-09 13:44:23 +00:00
2014-09-04 09:55:40 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-09-04 09:55:40 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-09-04 09:55:40 +00:00
2015-08-24 21:52:45 +00:00
2014-06-09 08:10:28 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-09-04 09:55:40 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-11-04 11:51:46 +00:00
2015-08-27 13:22:21 +00:00
2015-02-23 21:29:45 +00:00
2015-05-27 12:33:39 +00:00
2015-05-11 13:15:49 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-09-04 09:55:40 +00:00
2015-04-09 13:44:23 +00:00
2015-04-09 13:44:23 +00:00
2014-09-04 09:55:40 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-03 10:55:11 +00:00
2015-08-03 10:55:11 +00:00
2015-04-09 13:44:23 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-18 12:58:20 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-18 12:58:20 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-27 13:22:21 +00:00
2015-08-27 20:14:54 +00:00
2015-08-27 20:14:54 +00:00
2015-08-27 20:12:27 +00:00
2015-08-27 20:12:27 +00:00
2015-08-24 21:52:45 +00:00
2015-06-10 20:45:12 +00:00
2015-08-27 20:12:27 +00:00
2015-05-27 12:33:39 +00:00
2015-06-10 20:45:12 +00:00
2015-08-18 12:58:20 +00:00
2015-08-24 21:52:45 +00:00
2014-06-09 08:10:28 +00:00
2015-06-29 11:54:50 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-11-20 22:28:14 +00:00
2015-02-26 14:43:50 +00:00
2015-08-03 10:55:11 +00:00
2014-11-20 22:28:14 +00:00
2014-09-04 09:55:40 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-09-04 09:55:40 +00:00
2014-06-09 08:10:28 +00:00
2015-08-24 21:52:45 +00:00
2014-06-09 08:10:28 +00:00
2014-06-09 08:10:28 +00:00
2015-08-25 11:08:17 +00:00
2015-08-25 11:08:17 +00:00
2014-09-04 09:55:40 +00:00
2014-06-09 08:10:28 +00:00
2015-04-09 13:44:23 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2015-08-24 21:52:45 +00:00
2014-09-04 09:55:40 +00:00
2015-04-09 13:44:23 +00:00
2015-04-09 13:44:23 +00:00