mirror of
https://gitee.com/openharmony/communication_wifi.git
synced 2025-01-15 11:39:42 +00:00
fuzz code optimize
Signed-off-by: z00588131 <hw.zhangfeng@huawei.com>
This commit is contained in:
parent
19a532693d
commit
95f359b9fb
@ -18,9 +18,9 @@
|
||||
|
||||
namespace OHOS {
|
||||
namespace Wifi {
|
||||
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
|
||||
bool AddDeviceConfigFuzzerTest(const uint8_t* data, size_t size)
|
||||
{
|
||||
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
|
||||
if (devicePtr == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
@ -18,9 +18,9 @@
|
||||
|
||||
namespace OHOS {
|
||||
namespace Wifi {
|
||||
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
|
||||
bool ConnectToDeviceFuzzerTest(const uint8_t* data, size_t size)
|
||||
{
|
||||
std::unique_ptr<WifiDevice> devicePtr = WifiDevice::GetInstance(WIFI_DEVICE_ABILITY_ID);
|
||||
if (devicePtr == nullptr) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user