diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-17 12:26:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-17 12:35:13 +0200 |
commit | 0fa7b7372c80edc40c5ec140b665a21ebad6bba2 (patch) | |
tree | 8f2edc781f3d721e8d88f95ceaf4534009263a2e | |
parent | e17cc16b100031672b3dbb0a4f74e198c20d091a (diff) |
filter/accela: fix buffer overrun
Found-with: clang-analyzer, clazy, clang-tidy
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index 23d71ef0..956d0144 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -116,7 +116,7 @@ void accela::filter(const double* input, double *output) }); #if defined DEBUG_ACCELA - var.input(fabs(smoothed_input[0]) + fabs(smoothed_input[1]) + fabs(smoothed_input[2])); + var.input(fabs(smoothed_input[0]) + fabs(smoothed_input[1])); debug_max = fmax(debug_max, smoothed_input[0]); using time_units::secs_; |