未验证 提交 1344464f 编写于 作者: 张泊远yg 提交者: Gitee

update ipc/native/test/fuzztest/mock/dbinderdatabusinvoker_fuzzer/dbinderdatabusinvoker_fuzzer.cpp.

Signed-off-by: N张泊远yg <zhangboyuan1@huawei.com>
Signed-off-by: N张泊远yg <zhangboyuan1@huawei.com>
上级 c10ee8fc
......@@ -241,7 +241,7 @@ namespace OHOS {
return false;
}
uint32_t handle = reinterpret_cast<uint32_t>(data);
uint32_t handle = *(reinterpret_cast<const uint32_t*>(data));
const char* indata = reinterpret_cast<const char*>(data);
DBinderDatabusInvoker invoker;
std::shared_ptr<ThreadProcessInfo> processInfo = invoker.MakeThreadProcessInfo(handle, indata, size);
......@@ -258,7 +258,7 @@ namespace OHOS {
}
dbinder_transaction_data *tr = new dbinder_transaction_data();
uint32_t listenFd = reinterpret_cast<uint32_t>(data);
uint32_t listenFd = *(reinterpret_cast<const uint32_t*>(data));
DBinderDatabusInvoker invoker;
invoker.ProcessTransaction(tr, listenFd);
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册