Fix stringop overflow error

This commit is contained in:
joaquim-SRS 2021-12-14 11:51:00 +01:00 committed by Andre Puschmann
parent 12c1e68156
commit 213769fa3d
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ int fdd_tests(uint32_t max_cc)
ue_dl.cell.frame_type = SRSRAN_FDD;
for (uint32_t nof_cc = 1; nof_cc <= max_cc; nof_cc++) {
for (uint32_t nof_tb = 1; nof_tb <= SRSRAN_MAX_CODEWORDS; nof_tb++) {
for (uint8_t nof_tb = 1; nof_tb <= SRSRAN_MAX_CODEWORDS; nof_tb++) {
for (uint32_t nof_active_cc = 1; nof_active_cc <= nof_cc; nof_active_cc++) {
for (uint32_t nof_active_tb = 1; nof_active_tb <= nof_tb; nof_active_tb++) {
srsran_pdsch_ack_t ack_info = {};
@ -53,7 +53,7 @@ int fdd_tests(uint32_t max_cc)
ack_info.cc[cc_idx].m[0].present = cc_idx < nof_active_cc;
ack_info.cc[cc_idx].m[0].resource.n_cce = cc_idx + 1;
if (ack_info.cc[cc_idx].m[0].present) {
for (uint32_t j = 0; j < nof_tb; j++) {
for (uint8_t j = 0; j < nof_tb; j++) {
ack_info.cc[cc_idx].m[0].value[j] = j < nof_active_tb ? 1 : 2;
}
} else {