补充FUZZ

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

View File

@ -34,7 +34,7 @@ namespace DistributedDeviceProfile {
namespace { namespace {
constexpr size_t THRESHOLD = 10; constexpr size_t THRESHOLD = 10;
constexpr uint32_t MIN_INTERFACE_CODE = 7; constexpr uint32_t MIN_INTERFACE_CODE = 7;
constexpr uint32_t MAX_INTERFACE_CODE = 26; constexpr uint32_t MAX_INTERFACE_CODE = 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;
@ -101,6 +101,7 @@ void FuzzDeviceProfile(const uint8_t* rawData, size_t size)
code += MIN_INTERFACE_CODE; code += MIN_INTERFACE_CODE;
} }
DistributedDeviceProfileServiceNew::GetInstance().OnRemoteRequest(code, data, reply, option); DistributedDeviceProfileServiceNew::GetInstance().OnRemoteRequest(code, data, reply, option);
DistributedDeviceProfileServiceNew::GetInstance().NotifyEventInner(code, data, reply, option);
} }
} }
} }