From 914a2e2d31d2537cd7878c282b2d22d77afb79e1 Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Fri, 23 Jul 2021 09:18:29 +0200 Subject: [PATCH] Add SCH NR softbuffer check --- lib/src/phy/phch/sch_nr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/src/phy/phch/sch_nr.c b/lib/src/phy/phch/sch_nr.c index 6f7bb435a..5f717300e 100644 --- a/lib/src/phy/phch/sch_nr.c +++ b/lib/src/phy/phch/sch_nr.c @@ -549,6 +549,11 @@ static int sch_nr_decode(srsran_sch_nr_t* q, return SRSRAN_ERROR_INVALID_INPUTS; } + if (!tb->softbuffer.rx) { + ERROR("Missing softbuffer!"); + return SRSRAN_ERROR; + } + int8_t* input_ptr = e_bits; uint32_t nof_iter_sum = 0;