From 064ffe6563cdf7105d97e3d45c2d14520cea8352 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 17 May 2017 02:26:00 +0300 Subject: host/mobile: use talloc for ms->name allocation The approach of talloc memory management reduces memory usage, and prevents some buffer overflows, which were possible before. Change-Id: Icd6706117fdd7f1b3481b0e3817bbb3b31f12f60 --- src/host/layer23/include/osmocom/bb/common/osmocom_data.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/host/layer23/include/osmocom') diff --git a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h index 17dad10d..9b544ab9 100644 --- a/src/host/layer23/include/osmocom/bb/common/osmocom_data.h +++ b/src/host/layer23/include/osmocom/bb/common/osmocom_data.h @@ -57,7 +57,7 @@ struct rx_meas_stat { /* One Mobilestation for osmocom */ struct osmocom_ms { struct llist_head entity; - char name[32]; + char *name; struct osmo_wqueue l2_wq, sap_wq; uint16_t test_arfcn; struct osmol1_entity l1_entity; -- cgit v1.2.3