Commit: c0156edd198eef10c847b3540098cb4b9d18d142
Parent: d2d2d12f59d65002c4a671a5af1837f295181142
Author: Iulia Tanasescu <iulia.tanasescu@nxp.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2023-06-14 00:05:44
Tree: ec37cefbab5e217a8665cff492c045be35693914

gatt-server: Check pointer before memcpy This adds a check before calling memcpy inside bt_gatt_server_send_notification, to avoid getting the following error in case the user wants to send an empty notification for an attribute: src/shared/gatt-server.c:1789:3: runtime error: null pointer passed as argument 2, which is declared to never be null

Diffstat

M src/shared/gatt-server.c | 5 ++++-

1 files changed, 4 insertions(+), 1 deletions(-)

View Full Diff | Patch