Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(592)

Unified Diff: webrtc/common_audio/signal_processing/splitting_filter.c

Issue 2253943002: WebRtcSpl_SynthesisQMF: Fix UBSan fuzzer bug (left shift of negative value) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/signal_processing/splitting_filter.c
diff --git a/webrtc/common_audio/signal_processing/splitting_filter.c b/webrtc/common_audio/signal_processing/splitting_filter.c
index 36fcf355ecc3eb63a55c261058a6711471594b33..ba6e77dc6f9fde0a01ed4e1e23df39bc30f357a0 100644
--- a/webrtc/common_audio/signal_processing/splitting_filter.c
+++ b/webrtc/common_audio/signal_processing/splitting_filter.c
@@ -182,9 +182,9 @@ void WebRtcSpl_SynthesisQMF(const int16_t* low_band, const int16_t* high_band,
for (i = 0; i < band_length; i++)
{
tmp = (int32_t)low_band[i] + (int32_t)high_band[i];
- half_in1[i] = WEBRTC_SPL_LSHIFT_W32(tmp, 10);
+ half_in1[i] = tmp * (1 << 10);
tmp = (int32_t)low_band[i] - (int32_t)high_band[i];
- half_in2[i] = WEBRTC_SPL_LSHIFT_W32(tmp, 10);
kwiberg-webrtc 2016/08/17 16:19:42 Macro definition: #define WEBRTC_SPL_LSHIFT_W32(x
+ half_in2[i] = tmp * (1 << 10);
}
// all-pass filter the sum and difference channels
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698