webrtc/common_audio
Henrik Lundin 9b4aa600e5 Fix ptr overflow warning in filter_ar.c
In this code, the problem was that the ptr could sometimes point
outside of the allocated arrays, in particular before the array,
causing a pointer overflow warning. However, the memory pointed to was
never read or written while the pointer was off.

With this change, we keep an index instead of a pointer, which avoids
warnings for pointer overflow. The index might be negative at times,
but the index will not be used to address the arrays while negative.

Bug: webrtc:9166
Change-Id: I3a32d8e814660f43be9d4c94889d00ac3f8403a5
Reviewed-on: https://webrtc-review.googlesource.com/71165
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22951}
2018-04-20 09:29:10 +00:00
..
include Add decibel conversion functions to //common_audio:common_audio 2018-02-16 10:46:48 +00:00
mocks Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
resampler Move aligned memory utilities to rtc_base/memory/ 2018-03-22 14:13:24 +00:00
signal_processing Fix ptr overflow warning in filter_ar.c 2018-04-20 09:29:10 +00:00
vad Fixing -Wstrict-prototypes warnings. 2018-03-19 16:57:21 +00:00
audio_converter.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
audio_converter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_converter_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_ring_buffer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_ring_buffer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_ring_buffer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_util.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
audio_util_unittest.cc Add decibel conversion functions to //common_audio:common_audio 2018-02-16 10:46:48 +00:00
blocker.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
blocker.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
blocker_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
BUILD.gn Prepare for |is_posix| switch in the Fuchsia build 2018-04-05 17:25:39 +00:00
channel_buffer.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
channel_buffer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
channel_buffer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
DEPS Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fft4g.c Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
fft4g.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fir_filter.h Fix circular deps in common_audio. 2017-11-17 11:20:17 +00:00
fir_filter_c.cc Fix circular deps in common_audio. 2017-11-17 11:20:17 +00:00
fir_filter_c.h Fix circular deps in common_audio. 2017-11-17 11:20:17 +00:00
fir_filter_factory.cc Fix circular deps in common_audio. 2017-11-17 11:20:17 +00:00
fir_filter_factory.h Fix circular deps in common_audio. 2017-11-17 11:20:17 +00:00
fir_filter_neon.cc Move aligned memory utilities to rtc_base/memory/ 2018-03-22 14:13:24 +00:00
fir_filter_neon.h Move aligned memory utilities to rtc_base/memory/ 2018-03-22 14:13:24 +00:00
fir_filter_sse.cc Move aligned memory utilities to rtc_base/memory/ 2018-03-22 14:13:24 +00:00
fir_filter_sse.h Move aligned memory utilities to rtc_base/memory/ 2018-03-22 14:13:24 +00:00
fir_filter_unittest.cc Fix circular deps in common_audio. 2017-11-17 11:20:17 +00:00
lapped_transform.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
lapped_transform.h Move aligned memory utilities to rtc_base/memory/ 2018-03-22 14:13:24 +00:00
lapped_transform_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
OWNERS Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
real_fourier.cc Conditionally include real_fourier_openmax.h. 2018-02-23 09:02:36 +00:00
real_fourier.h Move aligned memory utilities to rtc_base/memory/ 2018-03-22 14:13:24 +00:00
real_fourier_ooura.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
real_fourier_ooura.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
real_fourier_openmax.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
real_fourier_openmax.h Conditionally include real_fourier_openmax.h. 2018-02-23 09:02:36 +00:00
real_fourier_unittest.cc Conditionally include real_fourier_openmax.h. 2018-02-23 09:02:36 +00:00
ring_buffer.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ring_buffer.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ring_buffer_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
smoothing_filter.cc Optional: Use nullopt and implicit construction in /common_audio 2017-11-28 15:46:48 +00:00
smoothing_filter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
smoothing_filter_unittest.cc Optional: Use nullopt and implicit construction in /common_audio 2017-11-28 15:46:48 +00:00
sparse_fir_filter.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
sparse_fir_filter.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
sparse_fir_filter_unittest.cc Fix circular deps in common_audio. 2017-11-17 11:20:17 +00:00
wav_file.cc Extend WavReader and WavWriter API. 2018-03-19 15:21:51 +00:00
wav_file.h Extend WavReader and WavWriter API. 2018-03-19 15:21:51 +00:00
wav_file_unittest.cc Extend WavReader and WavWriter API. 2018-03-19 15:21:51 +00:00
wav_header.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
wav_header.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
wav_header_unittest.cc IWYU: Include <string.h> for memcpy(3) after bbf21a3fd. 2018-04-17 11:48:13 +00:00
window_generator.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
window_generator.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
window_generator_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00