From b880760ab0b8febd21da874e920b0e79c0e8ef39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=88=E7=9A=93=E6=9D=B0?= Date: Tue, 23 Jul 2024 03:40:21 +0000 Subject: [PATCH] add fuzz MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 师皓杰 --- .../dmsfreeinstallcallbackstub_fuzzer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/fuzztest/dmsfreeinstallcallbackstub_fuzzer/dmsfreeinstallcallbackstub_fuzzer.cpp b/test/fuzztest/dmsfreeinstallcallbackstub_fuzzer/dmsfreeinstallcallbackstub_fuzzer.cpp index 03478d84..045ef113 100644 --- a/test/fuzztest/dmsfreeinstallcallbackstub_fuzzer/dmsfreeinstallcallbackstub_fuzzer.cpp +++ b/test/fuzztest/dmsfreeinstallcallbackstub_fuzzer/dmsfreeinstallcallbackstub_fuzzer.cpp @@ -17,6 +17,7 @@ #include "dms_free_install_callback.h" #include "distributed_sched_interface.h" +#include "mock_fuzz_util.h" #include "parcel_helper.h" namespace OHOS { @@ -29,6 +30,7 @@ bool OnInstallFinishedInnerFuzzTest(const uint8_t* data, size_t size) if ((data == nullptr) || (size < sizeof(int32_t))) { return false; } + FuzzUtil::MockPermission(); int64_t taskId = 0; IDistributedSched::FreeInstallInfo info; std::shared_ptr freeInstall_ =