Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59c8533e authored by Hui Peng's avatar Hui Peng
Browse files

Fix an OOB issue in IsTargetedAnnouncement

May need to goto to AOSP

Bug: 264624283
Test: manual
Ignore-AOSP-First: security

Change-Id: Iaff2a44eecb5447d77e85efa77bc618031ac862c
parent aa14e3be
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -132,7 +132,7 @@ bool IsTargetedAnnouncement(const uint8_t* p_eir, uint16_t eir_len) {
    uint8_t announcement_type;
    uint8_t announcement_type;
    const uint8_t* p_tmp = p_service_data;
    const uint8_t* p_tmp = p_service_data;


    if (service_data_len < 1) {
    if (service_data_len < 3) {
      continue;
      continue;
    }
    }