This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/17631 ) Change subject: csn1: verify enoguh bits present to decode whole CSN_UINT_ARRAY ...................................................................... csn1: verify enoguh bits present to decode whole CSN_UINT_ARRAY Change-Id: I4a762a8fec4153b53e10df1ec8ba3708c1f47649 --- M src/csn1.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/31/17631/1 diff --git a/src/csn1.c b/src/csn1.c index 0a532f1..340dcb0 100644 --- a/src/csn1.c +++ b/src/csn1.c @@ -338,7 +338,7 @@ nCount = *pui16DATA(data, nCount); } - if (remaining_bits_len >= no_of_bits) + if (remaining_bits_len >= (no_of_bits*nCount)) { remaining_bits_len -= (no_of_bits*nCount); if (no_of_bits <= 8) -- To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/17631 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: I4a762a8fec4153b53e10df1ec8ba3708c1f47649 Gerrit-Change-Number: 17631 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200326/8ad96769/attachment.htm>