From 89e7033830bd73a35f4bb2faf14ccf06f3785712 Mon Sep 17 00:00:00 2001 From: JF Date: Sun, 28 Jun 2020 11:59:14 +0200 Subject: Fix buffer overflow opportunities in AlertNotificationService & AlertNotificationClient. --- src/Components/Ble/NotificationManager.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Components/Ble/NotificationManager.h') diff --git a/src/Components/Ble/NotificationManager.h b/src/Components/Ble/NotificationManager.h index 8edd6828..daa1571b 100644 --- a/src/Components/Ble/NotificationManager.h +++ b/src/Components/Ble/NotificationManager.h @@ -7,10 +7,10 @@ namespace Pinetime { class NotificationManager { public: enum class Categories {Unknown, SimpleAlert, Email, News, IncomingCall, MissedCall, Sms, VoiceMail, Schedule, HighProriotyAlert, InstantMessage }; - static constexpr uint8_t MessageSize = 18; + static constexpr uint8_t MessageSize{18}; struct Notification { - std::array message; + std::array message; Categories category = Categories::Unknown; }; -- cgit v1.2.3-70-g09d2