diff --git a/rosen/modules/graphics_effect/test/fuzztest/gekawaseblurshaderfilter_fuzzer/ge_kawase_blur_shader_filter_fuzzer.cpp b/rosen/modules/graphics_effect/test/fuzztest/gekawaseblurshaderfilter_fuzzer/ge_kawase_blur_shader_filter_fuzzer.cpp index 0ab98e38e0..f530ee59b5 100644 --- a/rosen/modules/graphics_effect/test/fuzztest/gekawaseblurshaderfilter_fuzzer/ge_kawase_blur_shader_filter_fuzzer.cpp +++ b/rosen/modules/graphics_effect/test/fuzztest/gekawaseblurshaderfilter_fuzzer/ge_kawase_blur_shader_filter_fuzzer.cpp @@ -100,8 +100,8 @@ std::shared_ptr ScaleAndAddRandomColorFuzzTest(const uint8_t *da Drawing::Rect src = GETest::GetPlainData(); Drawing::Rect dst = GETest::GetPlainData(); - auto width = std::max(static_cast(std::ceil(dst.GetWidth())), imageBlur->GetWidth()); - auto height = std::max(static_cast(std::ceil(dst.GetHeight())), imageBlur->GetHeight()); + int width = GETest::GetPlainData(); + int height = GETest::GetPlainData(); auto res = shaderFilter->ScaleAndAddRandomColor(canvas, image, imageBlur, src, dst, width, height); return res; diff --git a/rosen/modules/graphics_effect/test/fuzztest/gemesablurshaderfilter_fuzzer/ge_mesa_blur_shader_filter_fuzzer.cpp b/rosen/modules/graphics_effect/test/fuzztest/gemesablurshaderfilter_fuzzer/ge_mesa_blur_shader_filter_fuzzer.cpp index eb5238e84c..8caf00a7ad 100644 --- a/rosen/modules/graphics_effect/test/fuzztest/gemesablurshaderfilter_fuzzer/ge_mesa_blur_shader_filter_fuzzer.cpp +++ b/rosen/modules/graphics_effect/test/fuzztest/gemesablurshaderfilter_fuzzer/ge_mesa_blur_shader_filter_fuzzer.cpp @@ -70,8 +70,8 @@ std::shared_ptr ScaleAndAddRandomColorFuzzTest(const uint8_t *da Drawing::Rect src = GETest::GetPlainData(); Drawing::Rect dst = GETest::GetPlainData(); - auto width = std::max(static_cast(std::ceil(dst.GetWidth())), imageBlur->GetWidth()); - auto height = std::max(static_cast(std::ceil(dst.GetHeight())), imageBlur->GetHeight()); + int width = GETest::GetPlainData(); + int height = GETest::GetPlainData(); Drawing::Canvas canvas; auto res = shaderFilter->ScaleAndAddRandomColor(canvas, image, imageBlur, src, dst, width, height); diff --git a/rosen/modules/graphics_effect/test/fuzztest/gerender_fuzzer/ge_render_fuzzer.cpp b/rosen/modules/graphics_effect/test/fuzztest/gerender_fuzzer/ge_render_fuzzer.cpp index f4a0a1fefa..273f62dcef 100644 --- a/rosen/modules/graphics_effect/test/fuzztest/gerender_fuzzer/ge_render_fuzzer.cpp +++ b/rosen/modules/graphics_effect/test/fuzztest/gerender_fuzzer/ge_render_fuzzer.cpp @@ -62,6 +62,10 @@ std::shared_ptr GERenderFuzzTest002(const uint8_t *data, size_t return nullptr; } // initialize + GETest::g_data = data; + GETest::g_size = size; + GETest::g_pos = 0; + auto geRender = std::make_shared(); Drawing::Canvas canvas; auto visualEffect = std::make_shared(Drawing::GE_FILTER_KAWASE_BLUR);