aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraravind sirsikar <arvind.sirsikar@radisys.com>2016-12-30 11:15:08 +0530
committeraravind sirsikar <arvind.sirsikar@radisys.com>2016-12-30 11:15:08 +0530
commitd3ae14c18f44d24c0a5c592fa9bdc9350b90cfd3 (patch)
treeac8cec231bb436dddfda7f1240a3747066bcd80e
parentfcf2af400a83cfa80dc203aad0438b74fce25d91 (diff)
Sanitizer build fix for invalid value of egprs_puncturing_values
This patch is probable fix for "tbf_dl.cpp:766:65: runtime error: load of value 32766, which is not a valid value for type 'egprs_puncturing_values'" Change-Id: Ice54edc7e4a936eb2f2dd8a243673a30dceef542
-rw-r--r--src/tbf_dl.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index f408418..ba9c100 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -623,6 +623,9 @@ struct msgb *gprs_rlcmac_dl_tbf::create_dl_acked_block(
bool need_padding = false;
enum egprs_rlcmac_dl_spb spb = EGPRS_RLCMAC_DL_NO_RETX;
unsigned int spb_status = get_egprs_dl_spb_status(index);
+
+ memset(punct, EGPRS_PS_INVALID, sizeof(punct));
+
/*
* TODO: This is an experimental work-around to put 2 BSN into
* MSC-7 to MCS-9 encoded messages. It just sends the same BSN