fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35373?usp=email )
Change subject: library/RLCMAC_EncDec: fix segfault in encode_trailing_padding_spb()
......................................................................
library/RLCMAC_EncDec: fix segfault in encode_trailing_padding_spb()
Change-Id: Ib0992a50026f0e0deebb959788ed6e79c5286fec
Related: OS#6310
---
M library/RLCMAC_EncDec.cc
1 file changed, 11 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/73/35373/1
diff --git a/library/RLCMAC_EncDec.cc b/library/RLCMAC_EncDec.cc
index 1b56984..dd32d8f 100644
--- a/library/RLCMAC_EncDec.cc
+++ b/library/RLCMAC_EncDec.cc
@@ -455,6 +455,7 @@
if (data_len > blk_len_no_spb) {
fprintf(stderr, "Buffer too large for requested CS! %s (%s:%u)\n", __func__,
__FILE__, __LINE__);
// TODO: throw exception?
+ return;
}
for (int i = 0; i < blk_len_no_spb - data_len; i++)
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/35373?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ib0992a50026f0e0deebb959788ed6e79c5286fec
Gerrit-Change-Number: 35373
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange