diff --git a/BUILD.gn b/BUILD.gn old mode 100755 new mode 100644 diff --git a/LICENSE b/LICENSE old mode 100755 new mode 100644 diff --git a/README.md b/README.md old mode 100755 new mode 100644 diff --git a/README_zh.md b/README_zh.md old mode 100755 new mode 100644 diff --git a/frameworks/liteipc/include/ipc_log.h b/frameworks/liteipc/include/ipc_log.h old mode 100755 new mode 100644 diff --git a/frameworks/liteipc/include/liteipc.h b/frameworks/liteipc/include/liteipc.h old mode 100755 new mode 100644 diff --git a/frameworks/liteipc/include/liteipc_pri.h b/frameworks/liteipc/include/liteipc_pri.h old mode 100755 new mode 100644 diff --git a/frameworks/liteipc/src/liteipc_adapter.c b/frameworks/liteipc/src/liteipc_adapter.c old mode 100755 new mode 100644 index 345af791db53b371ca0ae2be10d7504b68a57b48..00520e51a83fd1a49339aad40ced6aa78b747756 --- a/frameworks/liteipc/src/liteipc_adapter.c +++ b/frameworks/liteipc/src/liteipc_adapter.c @@ -772,7 +772,7 @@ static void TimeoutHandler(int signo, void *arg) .handle = g_ipcCallbackCb.handleId, .token = node->token }; - UnregisterIpcCallback(sid); + (void)UnregisterIpcCallback(sid); } int32_t StartIpcCbTimer(uint32_t mode, uint32_t timeoutMs, AnonymousApi* node, timer_t* timerId) diff --git a/frameworks/liteipc/src/serializer.c b/frameworks/liteipc/src/serializer.c old mode 100755 new mode 100644 diff --git a/frameworks/liteipc_linux/src/liteipc_adapter.c b/frameworks/liteipc_linux/src/liteipc_adapter.c index 0e96b4a76f822c86e845db018c158159655d635b..b36276ea61bf7402df7d0d7ec123d10068e60980 100644 --- a/frameworks/liteipc_linux/src/liteipc_adapter.c +++ b/frameworks/liteipc_linux/src/liteipc_adapter.c @@ -632,6 +632,9 @@ int32_t StartLoop(const IpcContext* context, IpcMsgHandler func, void* arg) static void BinderThreadLoop(const IpcContext* context, IpcMsgHandler func, void* arg) { + if (context == NULL || arg == NULL) { + return; + } struct binder_write_read bwr = {0}; uint32_t readbuf[READ_BUFFER_SIZE] = {0}; struct FuncPair funcPair = {0}; @@ -978,7 +981,9 @@ static void* CallbackDispatch(void* arg) return (void*)(intptr_t)LITEIPC_EINTNL; } g_ipcCallbackCb.threadWorking = true; - StartLoop(ipcContext, (IpcMsgHandler)TryCallBack, NULL); + if (StartLoop(ipcContext, (IpcMsgHandler)TryCallBack, NULL) != LITEIPC_OK) { + return (void*)(intptr_t)LITEIPC_EINTNL; + } return (void*)(intptr_t)LITEIPC_OK; } diff --git a/interfaces/kits/liteipc_adapter.h b/interfaces/kits/liteipc_adapter.h old mode 100755 new mode 100644 diff --git a/interfaces/kits/ndk_list.h b/interfaces/kits/ndk_list.h old mode 100755 new mode 100644 diff --git a/interfaces/kits/serializer.h b/interfaces/kits/serializer.h old mode 100755 new mode 100644