From 73260fb3358325cf39d908dbb47c151cbb0917b2 Mon Sep 17 00:00:00 2001 From: Francisco Date: Fri, 15 Oct 2021 10:14:33 +0100 Subject: [PATCH] sched,nr: fix stack overflow in sched_nr_test --- srsenb/src/stack/mac/nr/sched_nr.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/srsenb/src/stack/mac/nr/sched_nr.cc b/srsenb/src/stack/mac/nr/sched_nr.cc index 63c56220d..b0acfabf4 100644 --- a/srsenb/src/stack/mac/nr/sched_nr.cc +++ b/srsenb/src/stack/mac/nr/sched_nr.cc @@ -140,7 +140,8 @@ int sched_nr::get_ul_sched(slot_point slot_ul, uint32_t cc, ul_sched_t& result) { if (not pending_results->has_ul_result(slot_ul, cc)) { // sched result hasn't been generated - result = {}; + result.pucch.clear(); + result.pusch.clear(); return SRSRAN_SUCCESS; }