未验证 提交 e9acb8f8 编写于 作者: O openharmony_ci 提交者: Gitee

!1968 FIX:FuzzTest

Merge pull request !1968 from cheng_jinsong/0522_fuzz
......@@ -27,10 +27,10 @@ namespace OHOS {
bool FuzzHookMgrAdd(const uint8_t* data, size_t size)
{
bool result = false;
std::string str(reinterpret_cast<const char*>(data), size);
HOOK_MGR *hookMgr = HookMgrCreate(str.c_str());
int stage = *data;
int prio = *data;
if (!HookMgrAdd(hookMgr, 0, 0, TestHook)) {
if (!HookMgrAdd(NULL, stage, prio, TestHook)) {
result = true;
}
return result;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册