mirror of
https://gitee.com/openharmony/bundlemanager_bundle_framework
synced 2024-11-23 07:09:53 +00:00
fuzz fix
Signed-off-by: sunjiakun <sunjiakun5@huawei.com>
This commit is contained in:
parent
e662c73731
commit
14bacc7cea
@ -32,14 +32,14 @@ bool DoSomethingInterestingWithMyAPI(const char* data, size_t size)
|
||||
{
|
||||
AppControlHost appControlHost;
|
||||
MessageParcel datas;
|
||||
std::u16string descriptor = AppControlHost::GetDescriptor();
|
||||
datas.WriteInterfaceToken(descriptor);
|
||||
datas.WriteBuffer(data, size);
|
||||
datas.RewindRead(0);
|
||||
MessageParcel reply;
|
||||
appControlHost.HandleAddAppInstallControlRule(datas, reply);
|
||||
appControlHost.HandleDeleteAppInstallControlRule(datas, reply);
|
||||
for (uint32_t code = 2; code <= CODE_MAX; code++) {
|
||||
std::u16string descriptor = AppControlHost::GetDescriptor();
|
||||
datas.WriteInterfaceToken(descriptor);
|
||||
datas.WriteBuffer(data, size);
|
||||
datas.RewindRead(0);
|
||||
MessageOption option;
|
||||
appControlHost.OnRemoteRequest(code, datas, reply, option);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user