summaryrefslogtreecommitdiff
path: root/monitor/l2cap.c
diff options
context:
space:
mode:
authorGowtham Anandha Babu <gowtham.ab@samsung.com>2014-12-15 19:29:14 +0530
committerJohan Hedberg <johan.hedberg@intel.com>2014-12-16 14:30:47 +0200
commit690f751b8474d269dc9838a7a2fd34b057b44b9d (patch)
tree0a2fab5de131a9d27db871651cf4386076616284 /monitor/l2cap.c
parent7144164cdf6a1c8cda87c36a77efc1539e8349a7 (diff)
downloadbluez-690f751b8474d269dc9838a7a2fd34b057b44b9d.tar.gz
monitor/l2cap: Fix buffer overflow issue
String copy function overflows destination buffer. strcat(str, "LinkKey "); ^~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'monitor/l2cap.c')
-rw-r--r--monitor/l2cap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index 5f845ac81..0b6f7525d 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -2379,7 +2379,7 @@ static void print_smp_auth_req(uint8_t auth_req)
static void print_smp_key_dist(const char *label, uint8_t dist)
{
- char str[19];
+ char str[27];
if (!(dist & 0x07)) {
strcpy(str, "<none> ");