!164 fix:细粒度屏蔽cfi引起的crash

Merge pull request !164 from 李天刚/master
This commit is contained in:
openharmony_ci
2024-02-19 00:54:24 +00:00
committed by Gitee
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2023 Huawei Device Co., Ltd.
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -531,6 +531,7 @@ int32_t DistributedInputSourceProxy::StopRemoteInput(const std::string &srcId, c
}
int32_t DistributedInputSourceProxy::RegisterAddWhiteListCallback(sptr<IAddWhiteListInfosCallback> addWhiteListCallback)
__attribute__((no_sanitize("cfi")))
{
if (addWhiteListCallback == nullptr) {
DHLOGE("DistributedInputSourceProxy addWhiteListCallback is null.");