aboutsummaryrefslogtreecommitdiffstats
path: root/src/bts.cpp
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-07-10 21:03:23 +0200
committerlaforge <laforge@gnumonks.org>2019-07-11 03:22:15 +0000
commitfba931bab67c4239f3b1404240d008a1dbbe5d1f (patch)
treed45d3861064a951e5abbdfe5f03a2a13c875cecd /src/bts.cpp
parent243a20402141276e3bf983afde8b15cc5b5a000c (diff)
bts.cpp: ensure left-shift operation does not exceed uint32_t
Found by Asan Relates: OS#4029 Change-Id: I21640e40e689016d6fb80a8db4257b22e85b303b
Diffstat (limited to 'src/bts.cpp')
-rw-r--r--src/bts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bts.cpp b/src/bts.cpp
index e07b840..8799c3d 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -551,7 +551,7 @@ int BTS::rcv_imm_ass_cnf(const uint8_t *data, uint32_t fn)
}
/* get TLLI from downlink assignment */
- tlli = (*data++) << 28;
+ tlli = ((*data++) & 0xf) << 28;
tlli |= (*data++) << 20;
tlli |= (*data++) << 12;
tlli |= (*data++) << 4;