提交 878521d0 编写于 作者: C chengjinsong2

fuzztest 不通过

Signed-off-by: Nchengjinsong2 <chengjinsong2@huawei.com>
上级 c83f8521
......@@ -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.
先完成此消息的编辑!
想要评论请 注册