mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2025-01-14 03:02:43 +00:00
修改FUZZ告警
Signed-off-by: yiyajun <yiyajun@huawei.com>
This commit is contained in:
parent
65bc251d31
commit
8c861c4b38
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -18,4 +18,5 @@
|
||||
|
||||
#define FUZZ_PROJECT_NAME "wificp2p_fuzzer"
|
||||
#define TWO 2
|
||||
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user