Vadim Yanitskiy has posted comments on this change. ( https://gerrit.osmocom.org/10183 )
Change subject: BTS: fix: pad LAPDm frames before sending via L1CTL ...................................................................... Patch Set 2: (2 comments) https://gerrit.osmocom.org/#/c/10183/2//COMMIT_MSG Commit Message: https://gerrit.osmocom.org/#/c/10183/2//COMMIT_MSG@23 PS2, Line 23: pad the frames automatically, but it doesn't and shouldn't. > I think OsmocomBB is padding the frames if they are too short, doesn't it? I > think that may be where […] It actually does, but on the higher layers. So, on L1CTL we should have already padded frames. I also just checked Calypso firmware, and there are also no checks of the length, nor padding, so the firmware can also run into the heap overflow... https://gerrit.osmocom.org/#/c/10183/2/bts/BTS_Tests.ttcn File bts/BTS_Tests.ttcn: https://gerrit.osmocom.org/#/c/10183/2/bts/BTS_Tests.ttcn@3226 PS2, Line 3226: 02 > 0x2B Thanks! I just discovered that there is a function for doing that. I was looking for it in 'library/', but it's private and defined here... -- To view, visit https://gerrit.osmocom.org/10183 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I16cba4e4179456bebabf0638760af011a27fd333 Gerrit-Change-Number: 10183 Gerrit-PatchSet: 2 Gerrit-Owner: Vadim Yanitskiy <[email protected]> Gerrit-Reviewer: Harald Welte <[email protected]> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: Stefan Sperling <[email protected]> Gerrit-Reviewer: Vadim Yanitskiy <[email protected]> Gerrit-Comment-Date: Fri, 27 Jul 2018 08:10:38 +0000 Gerrit-HasComments: Yes Gerrit-HasLabels: No
