Files
platform-external-webrtc/webrtc/modules/audio_coding/codecs
kwiberg 3a2c803dc3 Multiply in 64 bits to avoid overflow
A fuzzer run caused the operands of this multiplication to be 512 and
5000000, resulting in a product about 20% too large for int32_t. So
change this from a 16x32->32 to a 16x32->64 multiplication. Since we
right shift by 2 at the end, the end result will still fit in int32_t.

I also had to fix a few follow-on add/sub overflows found by the same
fuzzer input once the multiplication was fixed. I chose to saturate
these, since it wasn't just an intermediate value that overflowed.

BUG=chromium:693868

Review-Url: https://codereview.webrtc.org/2729573002
Cr-Commit-Position: refs/heads/master@{#17003}
2017-03-03 13:44:49 +00:00
..
2017-01-12 18:17:38 +00:00
2017-01-12 18:17:38 +00:00
2016-11-16 19:11:38 +00:00
2017-01-13 14:02:29 +00:00
2017-01-13 14:02:29 +00:00
2016-11-16 19:11:38 +00:00