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
auto_correlation.c
complex_bit_reverse.c
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
complex_fft.c Replace left shift with equivalent multiplication. 2018-01-12 15:29:59 +00:00
complex_fft_mips.c
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
cross_correlation.c
cross_correlation_mips.c
cross_correlation_neon.c
division_operations.c
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
downsample_fast_neon.c
energy.c
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
filter_ma_fast_q12.c Fix ptr overflow warning 2018-04-19 08:58:18 +00:00
get_hanning_window.c
get_scaling_square.c
ilbc_specific_functions.c
levinson_durbin.c
lpc_to_refl_coef.c
min_max_operations.c
min_max_operations_mips.c
min_max_operations_neon.c
randomization_functions.c
real_fft.c
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
resample.c
resample_48khz.c
resample_by_2.c Replacing undefined left shifts with multiplication. 2017-10-31 09:43:02 +00:00
resample_by_2_internal.c
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
resample_fractional.c
signal_processing_unittest.cc
spl_init.c Fixing -Wstrict-prototypes warnings. 2018-03-19 16:57:21 +00:00
spl_inl.c
spl_sqrt.c
spl_sqrt_floor.c
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
splitting_filter.c
sqrt_of_one_minus_x_squared.c
vector_scaling_operations.c
vector_scaling_operations_mips.c