add ignore cfi check for HandleSensorData

Signed-off-by: lixiangpeng5 <lixiangpeng5@huawei.com>
Change-Id: Ib66e6b7c15db4b9a78fc80fb3f960cf6efc13c4f
This commit is contained in:
lixiangpeng5 2024-08-12 14:20:57 +00:00
parent 20668b8ccf
commit d8c6641631

View File

@ -59,7 +59,8 @@ std::set<const SensorUser *> 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) {