diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-04-07 13:15:36 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-04-07 13:15:38 +0200 |
commit | 63ebc368affaac2b8bd30716e3df48e00c2e126b (patch) | |
tree | ed180ee9c2e2245e32e581ac4c485636b1276872 /src/coding/gsm0503_tables.c | |
parent | f62f073c797bc68a28a75d22cbf2e74c889b7a72 (diff) |
gsm0503_coding: Fix USF encoding in MCS1-4
osmo-gsm-tester raised an ASan warning in osmo-bts-trx during execution
of a test with EGPRS enabled and a modem connecting to it (see OS#4483
for full trace):
==12388==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7fa20b9ab8d0 at pc 0x7fa20b982894 bp 0x7ffdfea8b9c0 sp 0x7ffdfea8b9b8
READ of size 1 at 0x7fa20b9ab8d0 thread T0
#0 0x7fa20b982893 in gsm0503_mcs1_dl_interleave /home/osmocom-build/jenkins/workspace/osmo-gsm-tester_build-osmo-bts/libosmocore/src/coding/gsm0503_interleaving.c:165
Function gsm0503_mcs1_dl_interleave() was being passed the 6-bit USF
encoding while clrearly expecting a 12 element array. TS 05.03 5.1.5.1.2
"USF precoding" also clearly states that 12bit encoding is to be used
for MCS1-4.
Fixes: OS#4483
Change-Id: I94db14de770070b17894a9071aa14391d26e776c
Diffstat (limited to 'src/coding/gsm0503_tables.c')
0 files changed, 0 insertions, 0 deletions