From 3d8b75ea76aef69b4857f812bd110489395cf6d6 Mon Sep 17 00:00:00 2001 From: giteeOrange Date: Thu, 7 Nov 2024 21:06:38 +0800 Subject: [PATCH] remove restrictions. Signed-off-by: giteeOrange --- .../wms/window_fuzzer/window_fuzzer.cpp | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/test/fuzztest/wms/window_fuzzer/window_fuzzer.cpp b/test/fuzztest/wms/window_fuzzer/window_fuzzer.cpp index b74ed23604..8aac189cea 100644 --- a/test/fuzztest/wms/window_fuzzer/window_fuzzer.cpp +++ b/test/fuzztest/wms/window_fuzzer/window_fuzzer.cpp @@ -325,9 +325,6 @@ bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) void CheckWindowImplFunctionsPart1(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; bool boolVal = false; @@ -388,9 +385,6 @@ void CheckWindowImplFunctionsPart1(sptr window, const uint8_t* data, siz void CheckWindowImplFunctionsPart2(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; int32_t posX; @@ -434,9 +428,6 @@ void CheckWindowImplFunctionsPart2(sptr window, const uint8_t* data, void CheckWindowImplFunctionsPart3(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; float floatVal; startPos += GetObject(floatVal, data + startPos, size - startPos); @@ -492,9 +483,6 @@ void CheckWindowImplFunctionsPart3(sptr window, const uint8_t* data, void CheckWindowImplFunctionsPart4(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; bool boolVal; @@ -536,9 +524,6 @@ void CheckWindowImplFunctionsPart4(sptr window, const uint8_t* data, void CheckWindowImplFunctionsPart5(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; OHOS::Rosen::Rect rect; @@ -598,9 +583,6 @@ void CheckWindowImplFunctionsPart5(sptr window, const uint8_t* data, void CheckWindowImplFunctionsPart6(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; TransitionReason reason; @@ -655,9 +637,6 @@ void CheckShadowColor(sptr window, const uint8_t* data, size_t size) void CheckWindowImplFunctionsPart7(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; NotifyNativeWinDestroyFunc func = [](std::string) {}; window->RegisterWindowDestroyedListener(func); @@ -707,9 +686,6 @@ void CheckWindowImplFunctionsPart7(sptr window, const uint8_t* data, void CheckWindowImplFunctionsPart8(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } size_t startPos = 0; std::vector params{"-h"}; std::vector info{""}; @@ -747,9 +723,6 @@ void CheckWindowImplFunctionsPart8(sptr window, const uint8_t* data, void CheckWindowImplFunctionsPart9(sptr window, const uint8_t* data, size_t size) { - if (window == nullptr || data == nullptr || size < DATA_MIN_SIZE) { - return; - } std::shared_ptr iInputEventConsumer = std::make_shared(); window->SetInputEventConsumer(iInputEventConsumer); std::shared_ptr configuration = std::make_shared();