srsran / srsRAN_4G

Open source SDR 4G software suite from Software Radio Systems (SRS) https://docs.srsran.com/projects/4g
https://www.srsran.com
GNU Affero General Public License v3.0
3.38k stars 1.11k forks source link

possible segment fault with insufficient init of wiener filter #720

Open mind22 opened 2 years ago

mind22 commented 2 years ago

The following init with the fixed ports of "2" is troublesome in the case of when you use the WIENER filter already in the cell search. That means your srsran_cell_t is configured with the max ports of 4 and 6 RB and you call chest_estimate it will crash.

https://github.com/srsran/srsRAN/blob/c950209902e28b7a3eb8724943ed5e3167f05d29/lib/src/phy/ch_estimation/chest_dl.c#L146

Maybe changing "2" to SRSRAN_MAXPORTS helps.

br

andrepuschmann commented 2 years ago

Thanks for reporting this.