Skip to content

Commit 0def6b4

Browse files
herlesupreethcodebot
authored andcommitted
asn1: fix value set for nof. extension unpacked groups in case of invalid UL DCCH message
1 parent 3037e9e commit 0def6b4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/asn1/asn1_utils.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,8 +1464,9 @@ SRSASN_CODE ext_groups_unpacker_guard::unpack(cbit_ref& bref)
14641464
{
14651465
bref_tracker = &bref;
14661466
// unpack nof of ext groups
1467-
HANDLE_CODE(unpack_norm_small_non_neg_whole_number(nof_unpacked_groups, bref));
1468-
nof_unpacked_groups += 1;
1467+
uint32_t nof_ext_groups = 0;
1468+
HANDLE_CODE(unpack_norm_small_non_neg_whole_number(nof_ext_groups, bref));
1469+
nof_unpacked_groups += nof_ext_groups + 1;
14691470
resize(nof_unpacked_groups);
14701471

14711472
// unpack each group presence flag

0 commit comments

Comments
 (0)