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/.
Harald Welte gerrit-no-reply at lists.osmocom.orgReview at https://gerrit.osmocom.org/7372 BSSMAP_Emulation: handle zero-length L3 Info in f_bssap_l3_is_rr() Change-Id: I5666911d67388347d04724635cf6f56e164a82f8 --- M library/BSSMAP_Emulation.ttcn 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/72/7372/1 diff --git a/library/BSSMAP_Emulation.ttcn b/library/BSSMAP_Emulation.ttcn index 5f8fe4f..2d9effc 100644 --- a/library/BSSMAP_Emulation.ttcn +++ b/library/BSSMAP_Emulation.ttcn @@ -464,6 +464,9 @@ return false; } var octetstring l3v := valueof(l3); + if (lengthof(l3v) < 1) { + return false; + } /* lower 4 bits of first octet are protocol discriminator */ if ((oct2bit(l3v[0]) and4b '00001111'B) == '00000110'B) { return true; -- To view, visit https://gerrit.osmocom.org/7372 To unsubscribe, visit https://gerrit.osmocom.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5666911d67388347d04724635cf6f56e164a82f8 Gerrit-PatchSet: 1 Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Owner: Harald Welte <laforge at gnumonks.org>