From 92cc36495fcd30fe7aa704f1de1d315ac0e32e0b Mon Sep 17 00:00:00 2001 From: torrizo Date: Thu, 14 Nov 2024 07:32:22 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85FUZZ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: torrizo --- .../deviceprofile_fuzzer/device_profile_fuzzer.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/old/services/core/test/fuzztest/deviceprofile_fuzzer/device_profile_fuzzer.cpp b/old/services/core/test/fuzztest/deviceprofile_fuzzer/device_profile_fuzzer.cpp index b13b5aba..69b0767b 100644 --- a/old/services/core/test/fuzztest/deviceprofile_fuzzer/device_profile_fuzzer.cpp +++ b/old/services/core/test/fuzztest/deviceprofile_fuzzer/device_profile_fuzzer.cpp @@ -34,7 +34,7 @@ namespace OHOS { namespace DeviceProfile { namespace { constexpr size_t THRESHOLD = 10; - constexpr uint8_t MAX_CALL_TRANSACTION = 7; + constexpr uint8_t MAX_CALL_TRANSACTION = 43; constexpr int32_t OFFSET = 4; constexpr int32_t ZERO_BIT = 0; constexpr int32_t FIRST_BIT = 1; @@ -97,6 +97,12 @@ void FuzzDeviceProfile(const uint8_t* rawData, size_t size) g_flag = true; } DistributedDeviceProfileService::GetInstance().OnRemoteRequest(code % MAX_CALL_TRANSACTION, data, reply, option); + DistributedDeviceProfileService:: + GetInstance().NotifyAclEventInner(code % MAX_CALL_TRANSACTION, data, reply, option); + DistributedDeviceProfileService:: + GetInstance().NotifyOldEventInner(code % MAX_CALL_TRANSACTION, data, reply, option); + DistributedDeviceProfileService:: + GetInstance().NotifyNewEventInner(code % MAX_CALL_TRANSACTION, data, reply, option); } } }