forked from pool/bluez
Dirk Mueller
b754a9895d
* Fix issue with handling security level for HoG. * Fix issue with handling HIDSDPDisable attribute. * Fix issue with handling HID virtual cable unplug. * Fix issue with handling HID channel disconnect order. * Fix issue with handling AVDTP delay reporting states. * Fix issue with handling AVRCP notification events. * Fix issue with handling AVRCP list player attributes. * Fix issue with handling AVRCP category 1 player settings. * Fix issue with handling AVRCP media player passthrough bitmask. * Fix issue with handling HFP 1.7 default features. * Fix issue with handling GATT disconnecting handling. * Fix issue with handling GATT database hash. * Fix issue with handling service changed characteristic. * Fix issue with handling read of multiple characteristic values. * Fix issue with handling Just-Works auto-accept pairing. * Fix issue with handling authentication of bonded devices. * Fix issue with handling L2CAP streaming mode for AVDTP. * Fix issue with handling SysEx parser for MIDI support. * Fix issue with handling configured scan parameter values. * Fix issue with handling temporary devices removal. * Fix issue with handling advertising flags. - remove input-hog-Attempt-to-set-security-level-if-not-bonde.patch, input-Add-LEAutoSecurity-setting-to-input.conf.patch: upstream - use autopatch, spec-cleaner OBS-URL: https://build.opensuse.org/package/show/Base:System/bluez?expand=0&rev=296
35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
# Upstream suggests to use btmon instead of hcidump and does not want those patches
|
|
# => PATCH-FIX-OPENSUSE for those two :-)
|
|
# fix some memory leak with malformed packet (reported upstream but not yet fixed)
|
|
|
|
From 5ca9510314d15d562e9ef5515a5483be5f28258d Mon Sep 17 00:00:00 2001
|
|
From: "Cho, Yu-Chen" <acho@suse.com>
|
|
Date: Wed, 21 Mar 2018 17:32:45 +0800
|
|
Subject: [PATCH BlueZ] tool/hcidump: Fix memory leak with malformed packet
|
|
|
|
Do not allow to read more then buffer size.
|
|
---
|
|
tools/parser/hci.c | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
Index: bluez-5.55/tools/parser/hci.c
|
|
===================================================================
|
|
--- bluez-5.55.orig/tools/parser/hci.c
|
|
+++ bluez-5.55/tools/parser/hci.c
|
|
@@ -989,8 +989,14 @@ static inline void pin_code_reply_dump(i
|
|
memset(pin, 0, sizeof(pin));
|
|
if (parser.flags & DUMP_NOVENDOR)
|
|
memset(pin, '*', cp->pin_len);
|
|
- else
|
|
+ else {
|
|
+ if (cp->pin_len > sizeof(pin)){
|
|
+ perror("Read failed");
|
|
+ exit(1);
|
|
+ }
|
|
+
|
|
memcpy(pin, cp->pin_code, cp->pin_len);
|
|
+ }
|
|
printf("bdaddr %s len %d pin \'%s\'\n", addr, cp->pin_len, pin);
|
|
}
|
|
|