mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-10-19 22:12:35 +00:00
A narrowed search of N < d_num_doppler_bins candidates adds up to two noise-reference rows, so N = d_num_doppler_bins - 1 needs d_num_doppler_bins + 1 rows. The step-1 grid buffers were sized to the full grid's own row count, which has no reference rows when the peak-ratio statistic is used or the CFAR wraparound distance suffices, so that request wrote one row past the end of d_grid_doppler_wipeoffs and d_magnitude_grid. Size the step-1 buffers (and the CUDA engine) for d_num_doppler_bins + 2 rows, which covers every row count set_doppler_num_bins() can produce, and add a regression test.