summaryrefslogtreecommitdiffstats
path: root/tests/gsm0408/gsm0408_test.ok
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 09:56:53 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 10:00:06 +0200
commitcd252e356556e28cfc72d66f82fa87d12f3e5a2a (patch)
tree096f2103cef01dfaeebed3b3f9a6347c26d98791 /tests/gsm0408/gsm0408_test.ok
parent476cf3337d79e5ed279aab33abb866ad48a39664 (diff)
gsm0408: Avoid unaligned memory access in gsm48_generate_mid_from_tmsi
The &buf[3] is unlikely to be aligned properly. Use memcpy instead of an assignment. Add a small testcase that verifies that I didn't mess up the conversion. Alignment trap: osmo-nitb (3293) PC=0x492b7094 Instr=0xe5803003 Address=0xbeb259db FSR 0x801
Diffstat (limited to 'tests/gsm0408/gsm0408_test.ok')
-rw-r--r--tests/gsm0408/gsm0408_test.ok1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/gsm0408/gsm0408_test.ok b/tests/gsm0408/gsm0408_test.ok
index 5ce19e63..4a6d78b9 100644
--- a/tests/gsm0408/gsm0408_test.ok
+++ b/tests/gsm0408/gsm0408_test.ok
@@ -1,2 +1,3 @@
Test `CSD 9600/V.110/transparent' passed
Test `Speech, all codecs' passed
+Simple TMSI encoding test....passed