summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPavlin Radoslavov <pavlin@google.com>2017-07-06 16:58:24 -0700
committerAndreas Blaesius <skate4life@gmx.de>2017-09-17 22:11:28 +0200
commit33427d54f31adaf5b9c697f5ce642fda1dc01946 (patch)
treedfd3872e5fa14664d5424904c92a30e17cd54170 /include
parent7f17ba1f8e475706727df7c50bc31ffb191d1f9d (diff)
downloadandroid_system_bt-33427d54f31adaf5b9c697f5ce642fda1dc01946.tar.gz
android_system_bt-33427d54f31adaf5b9c697f5ce642fda1dc01946.tar.bz2
android_system_bt-33427d54f31adaf5b9c697f5ce642fda1dc01946.zip
Add a missing check for PAN buffer size before copying data
Bug: 63146237 Test: External script Change-Id: I3e9c8a767a8a2a80ff56ccb48c56ca0d4b8c3402 Merged-In: I3e9c8a767a8a2a80ff56ccb48c56ca0d4b8c3402 (cherry picked from commit 1d909399cb4259243dac2e531e3ce6ca1afa77e7) CVE-2017-0782
Diffstat (limited to 'include')
-rw-r--r--include/bt_target.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/bt_target.h b/include/bt_target.h
index 6e9a835c6..e5e6280b5 100644
--- a/include/bt_target.h
+++ b/include/bt_target.h
@@ -334,6 +334,10 @@
#define AVDT_DATA_POOL_SIZE GKI_BUF3_SIZE
#endif
+#ifndef PAN_BUF_SIZE
+#define PAN_BUF_SIZE GKI_BUF3_SIZE
+#endif
+
#ifndef PAN_POOL_ID
#define PAN_POOL_ID GKI_POOL_ID_3
/* Maximum amount of the shared buffer to allocate for PAN */