修改FUZZ告警

Signed-off-by: yiyajun <yiyajun@huawei.com>
This commit is contained in:
yiyajun 2022-11-28 09:53:52 +08:00
parent 65bc251d31
commit 8c861c4b38
3 changed files with 3 additions and 4 deletions

View File

@ -36,7 +36,6 @@ static void SetHotspotConfigTest(const uint8_t* data, size_t size)
config.securityType = static_cast<int>(data[index++]);
config.band = static_cast<int>(data[index++]);
config.channelNum = static_cast<int>(data[index++]);
config.securityType = static_cast<int>(data[index++]);
}
(void)SetHotspotConfig(&config);
}
@ -57,7 +56,6 @@ static void GetHotspotConfigTest(const uint8_t* data, size_t size)
result.securityType = static_cast<int>(data[index++]);
result.band = static_cast<int>(data[index++]);
result.channelNum = static_cast<int>(data[index++]);
result.securityType = static_cast<int>(data[index++]);
}
(void)GetHotspotConfig(&result);
}

View File

@ -32,11 +32,11 @@ static void GetP2pEnableStatusTest(const uint8_t* data, size_t size)
static void GStartP2pListenTest(const uint8_t* data, size_t size)
{
int index = 0;
int period = 0;
int interval = 0;
if (index >= TWO) {
int index = 0;
period = static_cast<int>(data[index++]);
interval = static_cast<int>(data[index++]);
}
@ -114,7 +114,7 @@ static void P2pConnectTest(const uint8_t* data, size_t size)
int index = 0;
config.netId = static_cast<int>(OHOS::Wifi::U32_AT(data));
config.groupOwnerIntent = static_cast<int>(data[index++]);
config.goBand =GO_BAND_AUTO;
config.goBand = GO_BAND_AUTO;
}
(void)P2pConnect(&config);
}

View File

@ -18,4 +18,5 @@
#define FUZZ_PROJECT_NAME "wificp2p_fuzzer"
#define TWO 2
#endif