webrtc/modules/audio_processing/aecm
Alex Henrie ab835fe86e Fix bad frees in error paths of WebRtcAecm_Create
The error paths free the memory referenced by each pointer in the
struct, but if the pointers are not initialized, random memory belonging
to other parts of the program could be freed instead. Zero out the
entire struct as soon as it is allocated to ensure that nothing is freed
if there is nothing to free.

Bug: webrtc:11446
Change-Id: I8a2985d1388477339351aa03107ee68925372d49
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/171121
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30852}
2020-03-21 23:01:47 +00:00
..
aecm_core.cc Fix bad frees in error paths of WebRtcAecm_Create 2020-03-21 23:01:47 +00:00
aecm_core.h AECM: Added namespaces 2020-03-20 17:07:18 +00:00
aecm_core_c.cc AECM: Added namespaces 2020-03-20 17:07:18 +00:00
aecm_core_mips.cc AECM: Added namespaces 2020-03-20 17:07:18 +00:00
aecm_core_neon.cc AECM: Added namespaces 2020-03-20 17:07:18 +00:00
aecm_defines.h Reformat the WebRTC code base 2018-06-19 14:00:39 +00:00
BUILD.gn Use source_sets in component builds and static_library in release builds. 2019-10-17 21:17:18 +00:00
echo_control_mobile.cc Fix bad frees in error paths of WebRtcAecm_Create 2020-03-21 23:01:47 +00:00
echo_control_mobile.h AECM: Added namespaces 2020-03-20 17:07:18 +00:00