Change-Id: Ibed5eed1af0b0fb221ca96fb8a4f2b4de0389d83
Name: capi-telephony
Summary: Telephony Core API
-Version: 0.1.76
+Version: 0.1.77
Release: 1
Group: System/Libraries
License: Apache-2.0
if (ret == TAPI_API_SUCCESS) {
int len = strlen(sim_imsi_info.szMcc) + strlen(sim_imsi_info.szMnc);
*sim_operator = malloc(len + 1);
+ if (*sim_operator == NULL) {
+ LOGE("OUT_OF_MEMORY");
+ error_code = TELEPHONY_ERROR_OUT_OF_MEMORY;
+ return error_code;
+ }
snprintf(*sim_operator, len + 1, "%s%s", sim_imsi_info.szMcc, sim_imsi_info.szMnc);
LOGI("SIM operator: [%s]", *sim_operator);
/* LCOV_EXCL_START */