webrtc/modules/audio_coding/neteq
Henrik Lundin 8b84365c81 NetEq: Guarding against reading outside of memory
In rare and pathological circumstances, it could happen that the input
length to the merge function is very short. This CL will avoid one of
the problems with out-of-bounds read that could result from this.

Bug: chromium:799499
Change-Id: I6bde105ae88f9d130764b6dfb3d25443d07e214b
Reviewed-on: https://webrtc-review.googlesource.com/57582
Reviewed-by: Ivo Creusen <ivoc@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22180}
2018-02-26 09:30:00 +00:00
..
include Adds voice concealment periods reporting to neteq_rtpplay. 2018-02-07 18:41:42 +00:00
mock Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
test Add pcm16b quality test supporting 48khz. 2018-02-02 17:18:06 +00:00
tools Adds fixed PL loss mode to neteq_quality_test. 2018-02-13 15:34:04 +00:00
accelerate.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
accelerate.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
audio_decoder_unittest.cc Optional: Use nullopt and implicit construction in /modules/audio_coding 2017-11-17 11:58:37 +00:00
audio_multi_vector_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
audio_multi_vector.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
audio_multi_vector.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
audio_vector_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
audio_vector.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
audio_vector.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
background_noise_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
background_noise.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
background_noise.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
buffer_level_filter_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
buffer_level_filter.cc NetEq: Fix an UBSan error 2017-10-23 11:56:47 +00:00
buffer_level_filter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
comfort_noise_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
comfort_noise.cc Stop using LOG macros in favor of RTC_ prefixed macros. 2017-11-09 11:56:32 +00:00
comfort_noise.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
cross_correlation.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cross_correlation.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
decision_logic_fax.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
decision_logic_fax.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
decision_logic_normal.cc NetEq: Fix a problem with too large delay during codec-internal DTX/CNG 2017-11-02 13:09:07 +00:00
decision_logic_normal.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
decision_logic_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
decision_logic.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
decision_logic.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
decoder_database_unittest.cc NetEq: Drop unnecessary dependency on the audio decoder implementations 2017-10-16 12:57:47 +00:00
decoder_database.cc Optional: Use nullopt and implicit construction in /modules/audio_coding 2017-11-17 11:58:37 +00:00
decoder_database.h NetEq: Drop unnecessary dependency on the audio decoder implementations 2017-10-16 12:57:47 +00:00
defines.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
delay_manager_unittest.cc Fix for overflow bug in histogram scaling function in NetEq. 2017-12-11 17:01:36 +00:00
delay_manager.cc Fix for overflow bug in histogram scaling function in NetEq. 2017-12-11 17:01:36 +00:00
delay_manager.h NetEq: Drop unnecessary dependency on the audio decoder implementations 2017-10-16 12:57:47 +00:00
delay_peak_detector_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
delay_peak_detector.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
delay_peak_detector.h Added experiment to improve handling of frame length changes in NetEq. 2017-10-13 13:26:57 +00:00
dsp_helper_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
dsp_helper.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
dsp_helper.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
dtmf_buffer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
dtmf_buffer.cc Stop using LOG macros in favor of RTC_ prefixed macros. 2017-11-09 11:56:32 +00:00
dtmf_buffer.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
dtmf_tone_generator_unittest.cc Add decibel conversion functions to //common_audio:common_audio 2018-02-16 10:46:48 +00:00
dtmf_tone_generator.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
dtmf_tone_generator.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
expand_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
expand.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
expand.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
merge_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
merge.cc NetEq: Guarding against reading outside of memory 2018-02-26 09:30:00 +00:00
merge.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
nack_tracker_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
nack_tracker.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
nack_tracker.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
neteq_decoder_enum.cc Optional: Use nullopt and implicit construction in /modules/audio_coding 2017-11-17 11:58:37 +00:00
neteq_decoder_enum.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
neteq_external_decoder_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
neteq_impl_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
neteq_impl.cc Move FALLTHROUGH macro to a separate header, and give it an RTC_ prefix 2018-02-05 11:24:59 +00:00
neteq_impl.h NetEq: Make the fix for Opus DTX permanent 2018-01-29 08:51:27 +00:00
neteq_network_stats_unittest.cc Optional: Use nullopt and implicit construction in /modules/audio_coding 2017-11-17 11:58:37 +00:00
neteq_stereo_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
neteq_unittest.cc NetEq: Make the fix for Opus DTX permanent 2018-01-29 08:51:27 +00:00
neteq_unittest.proto Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
neteq.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
normal_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
normal.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
normal.h Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
packet_buffer_unittest.cc Optional: Use nullopt and implicit construction in /modules/audio_coding 2017-11-17 11:58:37 +00:00
packet_buffer.cc Optional: Use nullopt and implicit construction in /modules/audio_coding 2017-11-17 11:58:37 +00:00
packet_buffer.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
packet.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
packet.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
post_decode_vad_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
post_decode_vad.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
post_decode_vad.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
preemptive_expand.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
preemptive_expand.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
random_vector_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
random_vector.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
random_vector.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
red_payload_splitter_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
red_payload_splitter.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
red_payload_splitter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtcp.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
rtcp.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
statistics_calculator_unittest.cc NetEq: Simplify the dependencies of GetNetworkStatistics 2017-09-25 20:32:12 +00:00
statistics_calculator.cc Adds voice concealment periods reporting to neteq_rtpplay. 2018-02-07 18:41:42 +00:00
statistics_calculator.h Adds voice concealment periods reporting to neteq_rtpplay. 2018-02-07 18:41:42 +00:00
sync_buffer_unittest.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
sync_buffer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
sync_buffer.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
tick_timer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
tick_timer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
tick_timer.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
time_stretch_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
time_stretch.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
time_stretch.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
timestamp_scaler_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
timestamp_scaler.cc NetEq: Drop unnecessary dependency on the audio decoder implementations 2017-10-16 12:57:47 +00:00
timestamp_scaler.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00