From 538dcfca261e3a2eb0dc7d606f85b8d7dc7d2653 Mon Sep 17 00:00:00 2001 From: Danny Wood Date: Fri, 10 Sep 2021 15:15:05 +0100 Subject: [PATCH] libril: initialise RIL_CallForwardInfo to 0 when requesting status Some devices have extra pointers in this structure that if non-zero causes libsec-ril.so to segfault Change-Id: I9fd07a4747ef0fb1388ebbec472f2dda8dea4003 --- ril/libril/ril_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ril/libril/ril_service.cpp b/ril/libril/ril_service.cpp index ad24bf3c..0e7ebde2 100644 --- a/ril/libril/ril_service.cpp +++ b/ril/libril/ril_service.cpp @@ -679,7 +679,7 @@ bool dispatchCallForwardStatus(int serial, int slotId, int request, return false; } - RIL_CallForwardInfo cf; + RIL_CallForwardInfo cf = {}; cf.status = (int) callInfo.status; cf.reason = callInfo.reason; cf.serviceClass = callInfo.serviceClass;