mirror of
https://gitee.com/openharmony/deviceprofile_device_info_manager
synced 2024-11-23 07:30:13 +00:00
补充FUZZ
Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
parent
653f919435
commit
92cc36495f
@ -34,7 +34,7 @@ namespace OHOS {
|
|||||||
namespace DeviceProfile {
|
namespace DeviceProfile {
|
||||||
namespace {
|
namespace {
|
||||||
constexpr size_t THRESHOLD = 10;
|
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 OFFSET = 4;
|
||||||
constexpr int32_t ZERO_BIT = 0;
|
constexpr int32_t ZERO_BIT = 0;
|
||||||
constexpr int32_t FIRST_BIT = 1;
|
constexpr int32_t FIRST_BIT = 1;
|
||||||
@ -97,6 +97,12 @@ void FuzzDeviceProfile(const uint8_t* rawData, size_t size)
|
|||||||
g_flag = true;
|
g_flag = true;
|
||||||
}
|
}
|
||||||
DistributedDeviceProfileService::GetInstance().OnRemoteRequest(code % MAX_CALL_TRANSACTION, data, reply, option);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user