From 2b4bd975171eecdc460787b23456326e12eecdb3 Mon Sep 17 00:00:00 2001 From: Sam Zackrisson Date: Tue, 26 Nov 2019 18:52:00 +0100 Subject: [PATCH] Fix fuzzer-found bug in fuzzer The fuzzer itself does not call the APM API correctly. Bug: chromium:1028614 Change-Id: If94808e6d3a1f550c1001b081321e87448e4be49 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/160703 Reviewed-by: Alessio Bazzica Commit-Queue: Sam Zackrisson Cr-Commit-Position: refs/heads/master@{#29922} --- test/fuzzers/audio_processing_fuzzer_helper.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fuzzers/audio_processing_fuzzer_helper.cc b/test/fuzzers/audio_processing_fuzzer_helper.cc index eb2e0e8960..87b68f42e3 100644 --- a/test/fuzzers/audio_processing_fuzzer_helper.cc +++ b/test/fuzzers/audio_processing_fuzzer_helper.cc @@ -122,8 +122,8 @@ void FuzzAudioProcessing(test::FuzzDataHelper* fuzz_data, StreamConfig(output_rate, num_channels), ptr_to_float_frames); } else { apm_return_code = apm->ProcessReverseStream( - ptr_to_float_frames, StreamConfig(input_rate, 1), - StreamConfig(output_rate, 1), ptr_to_float_frames); + ptr_to_float_frames, StreamConfig(input_rate, num_channels), + StreamConfig(output_rate, num_channels), ptr_to_float_frames); } } else { const int num_channels = fuzz_data->ReadOrDefaultValue(true) ? 2 : 1;