From f6903dee891e4e6d7853e35c6fdca22c78559225 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 16 May 2010 01:51:14 +0800 Subject: gsm48: Add size checks to the paging response mi parsing. We go from no size checks to some content checking. We should refactor the whole classmark2 + mi parsing that is used throughout the code into one place with proper size checking. This is the start and requires a new libosmocore as well. --- openbsc/include/openbsc/gsm_04_08.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/include/openbsc/gsm_04_08.h') diff --git a/openbsc/include/openbsc/gsm_04_08.h b/openbsc/include/openbsc/gsm_04_08.h index 74dcbe52a..a49f91ed6 100644 --- a/openbsc/include/openbsc/gsm_04_08.h +++ b/openbsc/include/openbsc/gsm_04_08.h @@ -52,7 +52,7 @@ int decode_bcd_number(char *output, int output_len, const u_int8_t *bcd_lv, int h_len); int send_siemens_mrpci(struct gsm_lchan *lchan, u_int8_t *classmark2_lv); -int gsm48_paging_extract_mi(struct msgb *msg, char *mi_string, u_int8_t *mi_type); +int gsm48_paging_extract_mi(struct gsm48_pag_resp *pag, int length, char *mi_string, u_int8_t *mi_type); int gsm48_handle_paging_resp(struct msgb *msg, struct gsm_subscriber *subscr); int gsm48_lchan_modify(struct gsm_lchan *lchan, u_int8_t lchan_mode); -- cgit v1.2.3