Project

General

Profile

Actions

Bug #3196

closed

misaligned write in abis_nm_ipaccess_rsl_connect()

Added by neels almost 6 years ago. Updated almost 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
04/23/2018
Due date:
% Done:

0%

Spec Reference:

Description

20180423130614810 DNM DEBUG abis_nm.c:1966 OC=BASEBAND-TRANSCEIVER(04) INST=(00,00,ff): Sending OPSTART
../../../../src/osmo-bsc/src/libbsc/abis_nm.c:2794:24: runtime error: store to misaligned address 0x7fffffff3756 for type 'uint32_t', which requires 4 byte alignment
0x7fffffff3756: note: pointer points here
 81 0b bb 80 00 00  00 00 7f 55 55 55 00 00  60 79 6b f6 ff 7f 00 00  88 7a 7f 55 55 55 00 00  50 38
             ^ 

here

int abis_nm_ipaccess_rsl_connect(struct gsm_bts_trx *trx,
                                 uint32_t ip, uint16_t port, uint8_t stream)
{
...
        attr[4] = port & 0xff;
        *(uint32_t *)(attr+6) = ia.s_addr;
...............................^ here

Seen when starting up the network using address sanitizer build on debian testing.
gcc (Debian 7.3.0-16) 7.3.0

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)