summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* lib: Update company identifiersMarcel Holtmann2020-05-201-3/+41
|
* lib: Add structures and constants for experimental feature supportMarcel Holtmann2020-05-061-1/+30
|
* lib: Fixing opcode definition orderAlain Michaud2020-05-051-8/+8
| | | | Fixing what looks like a bad merge in the opcode order.
* lib: Update company identifiersMarcel Holtmann2020-04-051-68/+2434
|
* lib: Add details for reading security information commandMarcel Holtmann2020-04-021-0/+7
|
* lib: Add missing text for wideband speech commandMarcel Holtmann2020-04-021-0/+1
|
* lib: Add definitions for Enhanced Credits Based ModeLuiz Augusto von Dentz2020-03-301-0/+8
|
* lib: Add identifier for VIRTIO devicesMarcel Holtmann2020-03-302-0/+3
|
* lib: Add version number for Bluetooth 5.2Marcel Holtmann2020-03-151-0/+1
|
* lib: Adding definitions for Wide Band Speech configurationAlain Michaud2020-03-051-1/+4
| | | | | This change adds the corresponding user space definition for wide band speech.
* shared/gatt-client: Add support for EATT featuresLuiz Augusto von Dentz2020-03-021-0/+3
| | | | | This enables EATT in the Client Features if the EATT characteristic is present in the database.
* lib: Add definition to BT_PHYLuiz Augusto von Dentz2020-02-191-0/+18
| | | | | This adds the definition to BT_PHY socket options along with the possible bitfields for the return value.
* lib: Add company id for The Linux FoundationMarcel Holtmann2020-02-111-0/+2
|
* lib: Adding missing op_code string conversionAlain Michaud2020-01-171-0/+1
| | | | Adding the missing string conversion for MGMG_OP_SET_BLOCKED_KEYS.
* lib: MGMT_OP_SET_BLOCKED_KEYS Api definitionsAlain Michaud2020-01-161-0/+15
| | | | Adding the required definitions for the MGMT_OP_SET_BLOCKED_KEYS Api.
* lib: Add ba2strlc to match kernel printk formatAbhishek Pandit-Subedi2019-12-032-0/+8
| | | | | | | When the kernel prints the bluetooth address (via %pMR), it prints the address in lower case. ba2strlc should be used in cases where we should match the kernel casing (i.e. addresses assigned to /dev/uhid and /dev/uinput)
* lib/uuid: Introduce definition for GATT caching attributesLuiz Augusto von Dentz2019-02-061-0/+4
| | | | | This introduces UUIDs for Client Features and Database Hash characteristics.
* lib: Add version number for Bluetooth 5.1Johan Hedberg2019-01-291-0/+1
|
* build: Move declaration of _GNU_SOURCE back into individual source filesMarcel Holtmann2018-12-061-0/+1
|
* btmgmt: Add BREDR PHYs in PHY Configuration commandsJaganath Kanakkassery2018-11-281-11/+21
| | | | | | | | | | This basically adds BREDR packet types also in the PHY confiuration commands & events and makes the PHYs 32 bit so that it can be extended in future. This also add configurable PHYs in the GetPhy command wherein only those can be selected or deselected in SetPhy. This also adds LE prefix for LE phys to make it more descriptive
* sdp: Fix buffer overflowLuiz Augusto von Dentz2018-11-021-0/+6
| | | | | | | | | sdp_append_buf shall check if there is enough space to store the data before copying it. An independent security researcher, Julian Rauchberger, has reported this vulnerability to Beyond Security’s SecuriTeam Secure Disclosure program.
* btmgmt: Add support for setting PHY in add-advJaganath Kanakkassery2018-06-181-0/+3
|
* btmgmt: Add PHY configuration get/set commandsJaganath Kanakkassery2018-06-181-0/+33
|
* lib: Fix compiler warning from wrong array sizeMarcel Holtmann2018-05-231-1/+1
|
* shared/util: Introduce bt_appear_to_strLuiz Augusto von Dentz2017-12-211-0/+1
| | | | | This adds bt_appear_to_str which can decode the appearance code to a human readable string.
* battery: Add BT SIG reserved number used by Battery ServiceBastien Nocera2017-11-031-0/+1
| | | | | Add the Battery Level UUID as per: https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.battery_level.xml
* mesh: Add BT SIG reserved numbers for MeshBrian Gix2017-08-211-0/+10
|
* lib: Add version number for Bluetooth 5.0Marcel Holtmann2017-01-291-0/+1
|
* lib/sdp: Remove deprecated VIDEO_CONF profile idTomasz Gorochowik2017-01-161-1/+0
| | | | | | | | | | | | | Commit 75e0c32af6bf ("lib/sdp: Replace VIDEO_CONF_SVCLASS_ID with AV_REMOTE_CONTROLLER_SVCLASS_ID") removed the deprecated VIDEO_CONF_SVCLASS_ID definition, but left the corresponding profile definition.. According to the specification linked below A/V_RemoteControlController UUID can only be used as a service class so its profile definition should be removed. https://www.bluetooth.org/en-us/specification/assigned-numbers/service-discovery
* lib: Update company identifiersMarcel Holtmann2016-10-201-0/+44
|
* lib: Update company identifiersMarcel Holtmann2016-09-261-0/+18
|
* lib/mgmt: Add Set Appearance command definitionMichał Narajowski2016-09-181-0/+6
|
* lib: Update company identifiersMarcel Holtmann2016-09-151-2/+134
|
* lib: Add structs and defines for extended controller informationMarcel Holtmann2016-08-291-0/+19
|
* lib: Add identifier for Qualcomm SMD busMarcel Holtmann2016-08-152-0/+3
|
* lib/uuid: Fix using unitialized valuesLuiz Augusto von Dentz2016-07-291-2/+5
| | | | | | | | | | | | | | | | | | | | | | | The strings passed to bt_uuid_strcmp may not be valid UUIDs so the return of bt_string_to_uuid needs to be checked otherwise bt_uuid_cmp may attempt to access unitialized values: Conditional jump or move depends on uninitialised value(s) at 0x4C1D4D: bt_uuid_to_uuid128 (uuid.c:78) by 0x4C1F22: bt_uuid_cmp (uuid.c:131) by 0x4C24A8: bt_uuid_strcmp (uuid.c:286) by 0x40F8A8: reconnect_match (policy.c:514) by 0x40F8A8: service_cb (policy.c:655) by 0x499331: change_state (service.c:109) by 0x499BBB: btd_service_connecting_complete (service.c:361) by 0x4178C1: stream_state_changed (source.c:163) by 0x422C78: avdtp_sep_set_state (avdtp.c:1013) by 0x42372A: handle_transport_connect (avdtp.c:844) by 0x423D8B: avdtp_connect_cb (avdtp.c:2326) by 0x465BBB: connect_cb (btio.c:232) by 0x50CA702: g_main_context_dispatch (in /usr/lib64/libglib-2.0.so.0.4800.1) Uninitialised value was created by a stack allocation at 0x4C2460: bt_uuid_strcmp (uuid.c:280)
* lib: Update company identifiersMarcel Holtmann2016-07-171-1/+13
|
* lib: Update company identifiersMarcel Holtmann2016-07-051-2/+74
|
* lib: Define HCI_PRIMARY and use it instead of HCI_BREDRMarcel Holtmann2016-07-042-6/+7
|
* lib: Update company identifiersMarcel Holtmann2016-05-261-0/+36
|
* doc/gatt-api: Add secure flagsLuiz Augusto von Dentz2016-05-181-0/+1
| | | | | This add secure-{read,write} which shall be used by servers that want to restrict attribute access to secure connection only (BT_SECURITY_FIPS)
* lib: Update company identifiersMarcel Holtmann2016-05-171-1/+71
|
* lib: Add recently introduced SPI & I2C bus definesJohan Hedberg2016-04-222-0/+6
|
* lib: Update company identifiersMarcel Holtmann2016-04-051-0/+50
|
* lib: Update company identifiersMarcel Holtmann2016-03-181-1/+159
|
* uuid: fix 1 byte stack overflowCody P Schafer2016-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | scanf requires that '[' convertion specifiers have enough room for all characters in the string, _plus a terminating null byte_. We were previously not providing room for the terminating null byte. This was detected by AddressSanitizer: ==15036==ERROR: AddressSanitizer: stack-buffer-overflow on address 0x7ffe4e774401 at pc 0x7fd33f572c98 bp 0x7ffe4e774270 sp 0x7ffe4e7739f8 WRITE of size 2 at 0x7ffe4e774401 thread T0 #0 0x7fd33f572c97 in scanf_common /build/gcc-multilib/src/gcc-5-20160209/libsanitizer/sanitizer_common/sanitizer_common_interceptors_format.inc:340 #1 0x7fd33f5739ea in __interceptor_vsscanf /build/gcc-multilib/src/gcc-5-20160209/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:769 #2 0x7fd33f573b49 in __interceptor_sscanf /build/gcc-multilib/src/gcc-5-20160209/libsanitizer/sanitizer_common/sanitizer_common_interceptors.inc:793 #3 0x650db5 in is_base_uuid128 lib/uuid.c:191 #4 0x65196e in bt_string_to_uuid lib/uuid.c:267 #5 0x56f28e in parse_uuid src/gatt-database.c:1473 #6 0x5729e0 in database_add_service src/gatt-database.c:2053 #7 0x57329f in database_add_app src/gatt-database.c:2106 #8 0x573adc in client_ready_cb src/gatt-database.c:2211 #9 0x6695fd in get_managed_objects_reply gdbus/client.c:1097 #10 0x7fd33efd5391 (/usr/lib/libdbus-1.so.3+0x13391) #11 0x7fd33efd8db0 in dbus_connection_dispatch (/usr/lib/libdbus-1.so.3+0x16db0) #12 0x651ecd in message_dispatch gdbus/mainloop.c:72 #13 0x7fd33f25cc39 in g_main_context_dispatch (/usr/lib/libglib-2.0.so.0+0x49c39) #14 0x7fd33f25cfdf (/usr/lib/libglib-2.0.so.0+0x49fdf) #15 0x7fd33f25d301 in g_main_loop_run (/usr/lib/libglib-2.0.so.0+0x4a301) #16 0x54b7d1 in main src/main.c:687 #17 0x7fd33d90870f in __libc_start_main (/usr/lib/libc.so.6+0x2070f) #18 0x40bba8 in _start (/home/cody/g/bluez/src/bluetoothd+0x40bba8) Address 0x7ffe4e774401 is located in stack of thread T0 at offset 33 in frame #0 0x650ccd in is_base_uuid128 lib/uuid.c:184 This frame has 2 object(s): [32, 33) 'dummy' <== Memory access at offset 33 overflows this variable [96, 98) 'uuid' HINT: this may be a false positive if your program uses some custom stack unwind mechanism or swapcontext (longjmp and C++ exceptions *are* supported) SUMMARY: AddressSanitizer: stack-buffer-overflow /build/gcc-multilib/src/gcc-5-20160209/libsanitizer/sanitizer_common/sanitizer_common_interceptors_format.inc:340 scanf_common Shadow bytes around the buggy address: 0x100049ce6830: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100049ce6840: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100049ce6850: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100049ce6860: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0x100049ce6870: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 =>0x100049ce6880:[01]f4 f4 f4 f2 f2 f2 f2 02 f4 f4 f4 f3 f3 f3 f3 0x100049ce6890: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 0x100049ce68a0: 00 f4 f4 f4 f2 f2 f2 f2 00 00 04 f4 f2 f2 f2 f2 0x100049ce68b0: 00 00 00 00 00 00 00 00 00 f4 f4 f4 f3 f3 f3 f3 0x100049ce68c0: 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1 f1 0x100049ce68d0: 01 f4 f4 f4 f2 f2 f2 f2 00 00 04 f4 f3 f3 f3 f3 Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Heap right redzone: fb Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack partial redzone: f4 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe ==15036==ABORTING
* mgmt: Add support for Start Limited DiscoveryJohan Hedberg2016-01-051-0/+2
|
* lib: Update company identifiersMarcel Holtmann2015-12-271-3/+113
|
* lib/uuid: Make bt_uuid_to_string always use the same formatLuiz Augusto von Dentz2015-12-021-33/+22
| | | | | The convention has been to use 128 Bits UUID strings so other types must be converted first.
* lib: Add data structures for Get Advertising Size Information commandMarcel Holtmann2015-11-231-0/+13
|