update test/fuzztest/bundleinstallerhost_fuzzer/bundleinstallerhost_fuzzer.cpp.

Signed-off-by: Lotol <linxiangzhi@huawei.com>
This commit is contained in:
Lotol 2023-07-28 03:03:17 +00:00 committed by Gitee
parent 1c98c6bbd3
commit dd9a487656
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -18,6 +18,7 @@
#include <cstddef>
#include <cstdint>
#include "bundle_installer_host.h"
#include "bundle_mgr_service.h"
#include "message_parcel.h"
#include "securec.h"
@ -35,6 +36,7 @@ uint32_t GetU32Data(const char* ptr)
bool DoSomethingInterestingWithMyAPI(const char* data, size_t size)
{
#ifdef ON_64BIT_SYSTEM
DelayedSingleton<BundleMgrService>::GetInstance()->OnStop();
uint32_t code = (GetU32Data(data) % MESSAGE_SIZE);
MessageParcel datas;
std::u16string descriptor = BundleInstallerHost::GetDescriptor();