webrtc/modules/audio_coding/codecs/cng
Sam Zackrisson 32c6ae249f Fix fuzzer-found undefined behavior in webrtc_cng
The computation (x-127) << 8 is undefined for x < 127.
This CL replaces the shift with a multiplication: (x-127) * (1 << 8)

Bug: chromium:793201
Change-Id: I38b40bd88300208a0bfbbd8fe144b0a5b51a48ed
Reviewed-on: https://webrtc-review.googlesource.com/31800
Commit-Queue: Sam Zackrisson <saza@webrtc.org>
Reviewed-by: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21205}
2017-12-11 12:47:25 +00:00
..
audio_encoder_cng.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_encoder_cng.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_encoder_cng_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
cng_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
webrtc_cng.cc Fix fuzzer-found undefined behavior in webrtc_cng 2017-12-11 12:47:25 +00:00
webrtc_cng.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00