universal7580: libril: avoid SEGV when requesting call forwarding info
authorCorinna Vinschen <xda@vinschen.de>
Mon, 20 Aug 2018 09:15:19 +0000 (11:15 +0200)
committerJan Altensen <info@stricted.net>
Mon, 12 Aug 2019 06:51:23 +0000 (08:51 +0200)
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 <xda@vinschen.de>
include/telephony/ril.h

index 19a81634df4e6a96af77c804592acff958cfd7f6..92aa30105423f0efafb67efd0a50f83dcc405ca4 100644 (file)
@@ -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 {