lists.osmocom.org
Sign In Sign Up
Manage this list Sign In Sign Up

Keyboard Shortcuts

Thread View

  • j: Next unread message
  • k: Previous unread message
  • j a: Jump to all threads
  • j l: Jump to MailingList overview

gerrit-log

Thread Start a new thread
Download
Threads by month
  • ----- 2026 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2025 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2024 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2023 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
  • ----- 2022 -----
  • December
  • November
  • October
  • September
  • August
  • July
  • June
  • May
  • April
  • March
  • February
  • January
gerrit-log@lists.osmocom.org

  • 1 participants
  • 97203 discussions
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): fix endless loop iteration
by laforge 25 Nov '26

25 Nov '26
laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/44160?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): fix endless loop iteration ...................................................................... cbsp: cbsp_decode_cell_list(): fix endless loop iteration gsm0808_cell_id_size() returns 0 for CELL_IDENT_{BSS,NO_CELL}, and may also return a negative (-EINVAL), so we cannot *blindly* use its result to advance the *cur pointer. Let's cache the value outside of the loop and check it beforehand. Change-Id: I03e7548baef1e8703668de1a20d31c69bf87caf3 Related: f2210030 ("cbsp: Fix endless loop iteration when decoding cell list IEs") Fixes: OS#7098 --- M src/gsm/cbsp.c 1 file changed, 8 insertions(+), 1 deletion(-) Approvals: laforge: Looks good to me, approved pespin: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c index b355eef..f6ac79a 100644 --- a/src/gsm/cbsp.c +++ b/src/gsm/cbsp.c @@ -507,6 +507,7 @@ const uint8_t *buf, unsigned int len) { const uint8_t *cur = buf; + int cell_id_size; int rc; if (buf == NULL) { @@ -519,6 +520,12 @@ cl->id_discr = *cur++; + cell_id_size = gsm0808_cell_id_size(cl->id_discr); + if (cell_id_size <= 0) { + osmo_cbsp_errstr = "cell list: unexpected cell_id_size"; + return -EINVAL; + } + while (cur < buf + len) { struct osmo_cbsp_cell_ent *ent = talloc_zero(ctx, struct osmo_cbsp_cell_ent); unsigned int len_remain = len - (cur - buf); @@ -528,7 +535,7 @@ osmo_cbsp_errstr = "cell list: error decoding cell_id_union"; return rc; } - cur += gsm0808_cell_id_size(cl->id_discr); + cur += cell_id_size; llist_add_tail(&ent->list, &cl->list); } return 0; -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44160?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I03e7548baef1e8703668de1a20d31c69bf87caf3 Gerrit-Change-Number: 44160 Gerrit-PatchSet: 2 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_fail_list(): add missing bounds check
by laforge 25 Nov '26

25 Nov '26
laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/44161?usp=email ) Change subject: cbsp: cbsp_decode_fail_list(): add missing bounds check ...................................................................... cbsp: cbsp_decode_fail_list(): add missing bounds check Change-Id: I3c6776695c80691a54d2f2bbc7421c8c5ae9a216 --- M src/gsm/cbsp.c 1 file changed, 4 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved pespin: Looks good to me, but someone else must approve diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c index f6ac79a..b1d0d2f 100644 --- a/src/gsm/cbsp.c +++ b/src/gsm/cbsp.c @@ -559,6 +559,10 @@ return rc; } cur += gsm0808_cell_id_size(ent->id_discr); + if (cur + 1 > buf + len) { + osmo_cbsp_errstr = "fail list: truncated IE"; + return -EINVAL; + } ent->cause = *cur++; llist_add_tail(&ent->list, fl); } -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44161?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I3c6776695c80691a54d2f2bbc7421c8c5ae9a216 Gerrit-Change-Number: 44161 Gerrit-PatchSet: 2 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by laforge 25 Nov '26

25 Nov '26
Attention is currently required from: fixeria. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: (1 comment) File src/gsm/cbsp.c: https://gerrit.osmocom.org/c/libosmocore/+/44159/comment/6cd2a3f4_f265de2d?… : PS1, Line 515: } else if (len < 1) { > I'd agree with pespin: Let's spend the few seconds to update the patch and get on with it. ah well, let's follow up in a separate patch. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 14:00:23 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de> Comment-In-Reply-To: laforge <laforge(a)osmocom.org>
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by laforge 25 Nov '26

25 Nov '26
Attention is currently required from: fixeria. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 14:00:06 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered()
by laforge 25 Nov '26

25 Nov '26
Attention is currently required from: fixeria. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email ) Change subject: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered() ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ibaf89d14dafdec431dafbf2202e0f5bb145aac6c Gerrit-Change-Number: 44165 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 13:59:57 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_fail_list(): add missing bounds check
by laforge 25 Nov '26

25 Nov '26
Attention is currently required from: fixeria. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44161?usp=email ) Change subject: cbsp: cbsp_decode_fail_list(): add missing bounds check ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44161?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I3c6776695c80691a54d2f2bbc7421c8c5ae9a216 Gerrit-Change-Number: 44161 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 13:59:41 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): fix endless loop iteration
by laforge 25 Nov '26

25 Nov '26
Attention is currently required from: fixeria. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44160?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): fix endless loop iteration ...................................................................... Patch Set 1: Code-Review+2 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44160?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I03e7548baef1e8703668de1a20d31c69bf87caf3 Gerrit-Change-Number: 44160 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 13:59:33 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: cbsp_decode_cell_list(): check *buf/len
by laforge 25 Nov '26

25 Nov '26
Attention is currently required from: fixeria. laforge has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email ) Change subject: cbsp: cbsp_decode_cell_list(): check *buf/len ...................................................................... Patch Set 1: Code-Review+1 (1 comment) File src/gsm/cbsp.c: https://gerrit.osmocom.org/c/libosmocore/+/44159/comment/baeb94cd_86a2f496?… : PS1, Line 515: } else if (len < 1) { > Having an unneeded else after an early return only makes the code more complex for no good reason, t […] I'd agree with pespin: Let's spend the few seconds to update the patch and get on with it. -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44159?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: I31c66fad36f380fb6706a935df412fd6114f4cd9 Gerrit-Change-Number: 44159 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge(a)osmocom.org> Gerrit-CC: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 13:59:18 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Comment-In-Reply-To: pespin <pespin(a)sysmocom.de> Comment-In-Reply-To: fixeria <vyanitskiy(a)sysmocom.de>
1 0
0 0
[XS] Change in libosmocore[master]: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered()
by pespin 25 Nov '26

25 Nov '26
Attention is currently required from: fixeria. pespin has posted comments on this change by fixeria. ( https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email ) Change subject: cbsp: narrow the HAVE_SYS_SOCKET_H guard to osmo_cbsp_recv_buffered() ...................................................................... Patch Set 1: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/44165?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ibaf89d14dafdec431dafbf2202e0f5bb145aac6c Gerrit-Change-Number: 44165 Gerrit-PatchSet: 1 Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: pespin <pespin(a)sysmocom.de> Gerrit-Attention: fixeria <vyanitskiy(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 09:18:11 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
[S] Change in osmo-ttcn3-hacks[master]: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct
by osmith 25 Nov '26

25 Nov '26
Attention is currently required from: pespin. osmith has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44164?usp=email ) Change subject: smf: Introduce test TC_n11_handover_inter_ngran_n2_indirect_back_direct ...................................................................... Patch Set 2: Code-Review+1 -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/44164?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: comment Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I480b1a9b714d2b73bc39470ac6c676a982d2839b Gerrit-Change-Number: 44164 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin(a)sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith(a)sysmocom.de> Gerrit-Attention: pespin <pespin(a)sysmocom.de> Gerrit-Comment-Date: Wed, 25 Nov 2026 09:11:09 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: Yes
1 0
0 0
  • ← Newer
  • 1
  • ...
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • ...
  • 9721
  • Older →

HyperKitty Powered by HyperKitty version 1.3.12.