Sophie

Sophie

distrib > Mageia > 6 > i586 > by-pkgid > 397864fa8aa7091c7ab85c7accb6e9df > files > 10

bluez-5.45-2.2.mga6.src.rpm

From b18f628f613eda2a6fb013541fb8bb6eaee38cd2 Mon Sep 17 00:00:00 2001
From: "Cho, Yu-Chen" <acho@suse.com>
Date: Wed, 31 Oct 2018 16:15:08 +0800
Subject: [PATCH] hcidump: Fix set_ext_ctrl() global buffer overflow

Fix set_ext_ctrl() global buffer overflow.
---
 tools/parser/l2cap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/parser/l2cap.c b/tools/parser/l2cap.c
index a05796482..5daefcbaa 100644
--- a/tools/parser/l2cap.c
+++ b/tools/parser/l2cap.c
@@ -56,7 +56,7 @@ typedef struct {
 	uint8_t mode;
 	uint8_t ext_ctrl;
 } cid_info;
-#define CID_TABLE_SIZE 20
+#define CID_TABLE_SIZE 32
 
 static cid_info cid_table[2][CID_TABLE_SIZE];
 
-- 
2.19.1