
The current implementation carefully shifts down the energy so as not to overflow. The fuzzer audio_decoder_ilbc_fuzzer found an integer overflow anyway. The energy is only used for a threshold check. This fix stops the energy computation when the threshold is reached, before it can overflow. Bug: chromium:837922 Change-Id: I45e84d2d271a37e6476b08433a2cbd5a8f6e6f26 Reviewed-on: https://webrtc-review.googlesource.com/76122 Commit-Queue: Sam Zackrisson <saza@webrtc.org> Reviewed-by: Minyue Li <minyue@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23242}