aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-01-22 01:49:02 +0100
committerHarald Welte <laforge@gnumonks.org>2018-01-23 17:03:05 +0000
commit5718429ec99f185efe2e733463700b8997f66b61 (patch)
treec8a9d2b912dce7fe877466a95b1c57a229698f78 /include/osmocom
parent3b26f3495054196d42ac94fe4683aa94564807d8 (diff)
MNCC: Add input validation
There appears to have been no input validation whatsoever on MNCC messages. Hence it was very easy for an external MNCC handler to crash OsmoMSC, such as in OS#2853 Change-Id: Idaf3b8e409c84564b1eb26d01a19c605f89b14f4 Closes: OS#2853
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/msc/mncc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/osmocom/msc/mncc.h b/include/osmocom/msc/mncc.h
index 49f0c8b83..d2f054147 100644
--- a/include/osmocom/msc/mncc.h
+++ b/include/osmocom/msc/mncc.h
@@ -215,5 +215,6 @@ int mncc_sock_init(struct gsm_network *net, const char *sock_path);
|| msg_type == GSM_TCH_FRAME_AMR \
|| msg_type == GSM_BAD_FRAME)
+int mncc_prim_check(const struct gsm_mncc *mncc_prim, unsigned int len);
#endif