From 08b7423a5105478f0f6a6c3193819e5e43721330 Mon Sep 17 00:00:00 2001 From: torrizo Date: Mon, 4 Aug 2025 02:50:58 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E5=B1=8F=E8=94=BDfuzz=E4=BD=8E=E9=A3=8E?= =?UTF-8?q?=E9=99=A9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: torrizo --- common/src/ipc/standard/ipc_model_codec.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/ipc/standard/ipc_model_codec.cpp b/common/src/ipc/standard/ipc_model_codec.cpp index e582e1bcd..63c05ae86 100644 --- a/common/src/ipc/standard/ipc_model_codec.cpp +++ b/common/src/ipc/standard/ipc_model_codec.cpp @@ -35,6 +35,7 @@ constexpr uint32_t IPC_VECTOR_MAX_SIZE = 1000; } \ } while (0) +//LCOV_EXCL_START void IpcModelCodec::DecodeDmDeviceBasicInfo(MessageParcel &parcel, DmDeviceBasicInfo &devInfo) { std::string deviceIdStr = parcel.ReadString(); @@ -478,6 +479,6 @@ bool IpcModelCodec::DecodeStringVector(MessageParcel &parcel, std::vector Date: Mon, 4 Aug 2025 03:07:09 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E5=B1=8F=E8=94=BDfuzz=E4=BD=8E=E9=A3=8E?= =?UTF-8?q?=E9=99=A9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: torrizo --- services/service/src/softbus/softbus_listener.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/service/src/softbus/softbus_listener.cpp b/services/service/src/softbus/softbus_listener.cpp index f834a08e3..27593d1a0 100644 --- a/services/service/src/softbus/softbus_listener.cpp +++ b/services/service/src/softbus/softbus_listener.cpp @@ -967,6 +967,7 @@ void SoftbusListener::ConvertDeviceInfoToDmDevice(const DeviceInfo &device, DmDe dmDevice.extraData = SafetyDump(jsonObj); } +//LCOV_EXCL_START void SoftbusListener::ParseConnAddrInfo(const ConnectionAddr *addrInfo, JsonObject &jsonObj) { if (addrInfo->type == ConnectionAddrType::CONNECTION_ADDR_ETH) { @@ -1004,6 +1005,7 @@ void SoftbusListener::ParseConnAddrInfo(const ConnectionAddr *addrInfo, JsonObje LOGI("Unknown connection address type: %{public}d.", addrInfo->type); } } +//LCOV_EXCL_STOP int32_t SoftbusListener::GetNetworkTypeByNetworkId(const char *networkId, int32_t &networkType) { @@ -1288,6 +1290,7 @@ int32_t SoftbusListener::SetLocalDisplayName(const std::string &displayName) return DM_OK; } +//LCOV_EXCL_START #if !(defined(__LITEOS_M__) || defined(LITE_DEVICE)) void SoftbusListener::ConvertAclToDeviceInfo(DistributedDeviceProfile::AccessControlProfile &profile, DmDeviceInfo &deviceInfo) @@ -1524,5 +1527,6 @@ int32_t SoftbusListener::PutOstypeData(const std::string &peerUdid, int32_t osTy return KVAdapterManager::GetInstance().PutOstypeData(peerUdid, osTypeStr); } #endif +//LCOV_EXCL_STOP } // namespace DistributedHardware } // namespace OHOS \ No newline at end of file -- Gitee