a9948f7e23
For reports modes 0 and 1, the number of FFT bins in a detector will be 0. We calculate end_bin_idx as start_bin_idx + num_bins - 1. When start_bin_idx is 0 for these report modes, end_bin_idx will be -1. Since bin indices are unsigned integers, end_bin_idx becomes a very big value and we will try to copy unintended large number of bytes. Fix this by forcing end_bin_idx to start_bin_idx when num_bins is 0. Change-Id: I11e5dd673fc95a1ce3823ef977fd70c34a4ec67e CRs-Fixed: 3096955 |
||
---|---|---|
.. | ||
target_if_spectral_netlink.c | ||
target_if_spectral_phyerr.c | ||
target_if_spectral_sim_int.h | ||
target_if_spectral_sim.c | ||
target_if_spectral_sim.h | ||
target_if_spectral.c | ||
target_if_spectral.h |