From a525a84de2127dfda37513967909337b85432700 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 20 Aug 2018 11:15:19 +0200 Subject: [PATCH] universal7580: libril: avoid SEGV when requesting call forwarding info libsec-ril.so crashes when requesting call forwarding info. The reason is that Samsung's RIL_CallForwardInfo has two extra members, string pointers called startTime and endTime. There's no such thing as start and end time defined for GSM call forwarding, so it's not clear what's the purpose. However, adding these members to RIL_CallForwardInfo and setting them to NULL fixes the crash. Change-Id: I174bb24996e79c378a94921f105168f6c574a044 Signed-off-by: Corinna Vinschen --- include/telephony/ril.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/telephony/ril.h b/include/telephony/ril.h index 19a8163..92aa301 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -691,6 +691,8 @@ typedef struct { int toa; /* "type" from TS 27.007 7.11 */ char * number; /* "number" from TS 27.007 7.11. May be NULL */ int timeSeconds; /* for CF no reply only */ + char * startTime; /* SEC addition */ + char * endTime; /* SEC addition */ }RIL_CallForwardInfo; typedef struct { -- 2.20.1