layer23: fix unaligned store in osmo_send_l1()
commit82d8370f623c7b5054afff729db35880d01fd45c
authorHarald Welte <laforge@gnumonks.org>
Sat, 11 Aug 2018 10:55:43 +0000 (11 12:55 +0200)
committerHarald Welte <laforge@gnumonks.org>
Sat, 11 Aug 2018 12:59:30 +0000 (11 12:59 +0000)
tree4871e872e46c8803aee4519e3360f2d9ca58383f
parent4d07f40b9427743902df86a128453572ba1734bb
layer23: fix unaligned store in osmo_send_l1()

This fixes the following alignment issue uncovered by asan:

l1l2_interface.c:169:7: runtime error: store to misaligned address 0x61600001ab99 for type 'uint16_t', which requires 2 byte alignment
0x61600001ab99: note: pointer points here
 00 00 00  00 00 00 06 0a 01 19 19  40 18 00 07 00 01 03 49  06 15 00 40 01 c0 00 00  00 00 00 00 00
              ^

Change-Id: Ie65b428107d35bac99bc870fdbc4dc509ca2f33c
src/host/layer23/src/common/l1l2_interface.c