From 6fb2611bd254447cc93b63d9a3a79c346e6ebb0e Mon Sep 17 00:00:00 2001 From: wuzhihuitmac Date: Wed, 7 Aug 2024 18:47:26 +0800 Subject: [PATCH] add ignore for cfi check Signed-off-by: wuzhihuitmac Change-Id: Ib553865b8e30d7bfb53102b87ea7bbc3d125eb6f --- frameworks/native/src/sensor_agent_proxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/native/src/sensor_agent_proxy.cpp b/frameworks/native/src/sensor_agent_proxy.cpp index a714a3cb..0cdfbe2d 100644 --- a/frameworks/native/src/sensor_agent_proxy.cpp +++ b/frameworks/native/src/sensor_agent_proxy.cpp @@ -59,7 +59,8 @@ std::set SensorAgentProxy::GetSubscribeUser(int32_t sensorId return {iter->second}; } -void SensorAgentProxy::HandleSensorData(SensorEvent *events, int32_t num, void *data) +void SensorAgentProxy::HandleSensorData(SensorEvent *events, + int32_t num, void *data) __attribute__((no_sanitize("cfi"))) { CHKPV(events); if (num <= 0) { -- Gitee