补充FUZZ

Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
torrizo 2024-11-14 07:32:22 +00:00 committed by Gitee
parent 653f919435
commit 92cc36495f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);
}
}
}