mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-10-01 01:35:54 -04:00
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Brian Delwiche <delwiche@google.com>
|
||
|
Date: Thu, 25 Aug 2022 20:39:08 +0000
|
||
|
Subject: [PATCH] Add missing increment in bnep_api.cc
|
||
|
|
||
|
Bug: 228450451
|
||
|
Test: manual, pair BT and play audio
|
||
|
Tag: #security
|
||
|
Ignore-AOSP-First: Security
|
||
|
Change-Id: I681878508feae3d0526ed3e928af7a415e7d5c36
|
||
|
(cherry picked from commit 0fa54c7d8a2c061202e61d75b805661c1e89a76d)
|
||
|
Merged-In: I681878508feae3d0526ed3e928af7a415e7d5c36
|
||
|
---
|
||
|
stack/bnep/bnep_api.cc | 1 +
|
||
|
1 file changed, 1 insertion(+)
|
||
|
|
||
|
diff --git a/stack/bnep/bnep_api.cc b/stack/bnep/bnep_api.cc
|
||
|
index 56551d4e9..1f2cfc905 100644
|
||
|
--- a/stack/bnep/bnep_api.cc
|
||
|
+++ b/stack/bnep/bnep_api.cc
|
||
|
@@ -259,6 +259,7 @@ tBNEP_RESULT BNEP_ConnectResp(uint16_t handle, tBNEP_RESULT resp) {
|
||
|
p = (uint8_t*)(p_bcb->p_pending_data + 1) + p_bcb->p_pending_data->offset;
|
||
|
while (extension_present && p && rem_len) {
|
||
|
ext_type = *p++;
|
||
|
+ rem_len--;
|
||
|
extension_present = ext_type >> 7;
|
||
|
ext_type &= 0x7F;
|
||
|
|