OsmocomBB MS-side GSM Protocol stack (L1, L2, L3) including firmware https://osmocom.org/projects/baseband
Go to file
Vadim Yanitskiy d02927b036 layer23/l1ctl.c: fix: verify msg length using l1h, not l2h
The actual L1CTL header is pointed by 'msg->l1h', not 'l2h'!
Since msg->l2h is NULL (because nobody set it), the result of
msgb_l2len() would always be bigger than size of L1CTL header,
as it is calculated in the following way:

  return msgb->tail - (uint8_t *)msgb_l2(msgb);

So, in case if 'msg->l2h' is NULL, it turns into:

  return msgb->tail - 0;

Change-Id: I7fe2e00bb45ba07c9bb7438445eededfa09c96f3
2018-10-03 19:21:58 +07:00
contrib jenkins.sh: Don't only build-verify layer23 but all other host programs, too 2018-08-24 08:44:02 +02:00
doc mobile: Add lua examples for basic functions that are available 2017-12-27 10:51:32 +08:00
include l1ctl_proto.h: extend ccch_mode enum with CBCH 2018-10-03 08:37:11 +00:00
src layer23/l1ctl.c: fix: verify msg length using l1h, not l2h 2018-10-03 19:21:58 +07:00
.gitignore Don't ignore top-level Makefile 2018-01-22 17:33:54 +01:00
.gitreview Add 'git review' config file 2017-09-07 12:21:24 +02:00