webrtc/common_audio/signal_processing
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 Fixing -Wstrict-prototypes warnings. 2018-03-19 16:57:21 +00:00
auto_corr_to_refl_coef.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
auto_correlation.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
complex_bit_reverse.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
complex_bit_reverse_arm.S Move asm_defines.h to rtc_base/system/ 2018-03-22 03:12:13 +00:00
complex_bit_reverse_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
complex_fft.c Replace left shift with equivalent multiplication. 2018-01-12 15:29:59 +00:00
complex_fft_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
complex_fft_tables.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
copy_set_operations.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cross_correlation.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cross_correlation_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
cross_correlation_neon.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
division_operations.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
dot_product_with_scale.cc Move some numeric utility code from rtc_base/ to rtc_base/numerics/ 2017-11-22 11:21:47 +00:00
dot_product_with_scale.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
downsample_fast.c Fix ptr overflow warning 2018-04-19 08:58:18 +00:00
downsample_fast_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
downsample_fast_neon.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
energy.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
filter_ar.c Fix ptr overflow warning in filter_ar.c 2018-04-20 09:29:10 +00:00
filter_ar_fast_q12.c Fix ptr overflow warning 2018-04-19 08:58:18 +00:00
filter_ar_fast_q12_armv7.S Move asm_defines.h to rtc_base/system/ 2018-03-22 03:12:13 +00:00
filter_ar_fast_q12_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
filter_ma_fast_q12.c Fix ptr overflow warning 2018-04-19 08:58:18 +00:00
get_hanning_window.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
get_scaling_square.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ilbc_specific_functions.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
levinson_durbin.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
lpc_to_refl_coef.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
min_max_operations.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
min_max_operations_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
min_max_operations_neon.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
randomization_functions.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
real_fft.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
real_fft_unittest.cc Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
refl_coef_to_lpc.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
resample.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
resample_48khz.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
resample_by_2.c Replacing undefined left shifts with multiplication. 2017-10-31 09:43:02 +00:00
resample_by_2_internal.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
resample_by_2_internal.h Adding NOLINT for typedefs.h and common_types.h 2017-09-15 13:03:51 +00:00
resample_by_2_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
resample_fractional.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
signal_processing_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
spl_init.c Fixing -Wstrict-prototypes warnings. 2018-03-19 16:57:21 +00:00
spl_inl.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
spl_sqrt.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
spl_sqrt_floor.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
spl_sqrt_floor_arm.S Move asm_defines.h to rtc_base/system/ 2018-03-22 03:12:13 +00:00
spl_sqrt_floor_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
splitting_filter.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
sqrt_of_one_minus_x_squared.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
vector_scaling_operations.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
vector_scaling_operations_mips.c Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00